Class: Fluffery::Forms::Validation::Pattern
- Defined in:
- lib/fluffery/forms/validation/validators.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
#add_html_attributes, #attribute_format_validator, #attribute_required?, #default_messages_for, #errors_for?, #initialize, #options_require_validation?, #validators_for, #validators_for?
Constructor Details
This class inherits a constructor from Fluffery::Forms::Validation::Base
Class Method Details
.create(attribute, options, matcher) ⇒ Object
13 14 15 16 |
# File 'lib/fluffery/forms/validation/validators.rb', line 13 def self.create(attribute, , matcher) .reverse_merge!('pattern' => matcher.source) unless matcher.nil? end |