Module: SimpleFormWithClientValidation::Components::Pattern
- Included in:
- Inputs::Base
- Defined in:
- lib/simple_form_with_client_validation/components/pattern.rb
Overview
Needs to be enabled in order to do automatic lookups.
Instance Method Summary collapse
Instance Method Details
#pattern ⇒ Object
7 8 9 10 11 12 |
# File 'lib/simple_form_with_client_validation/components/pattern.rb', line 7 def pattern [:pattern] ||= pattern_source [:'data-pattern'] = [:pattern] [:'data-pattern-message'] = [:'data-pattern-message'] || nil end |