Module: SimpleFormWithClientValidation::Components::MinMax
- Included in:
- Inputs::Base
- Defined in:
- lib/simple_form_with_client_validation/components/min_max.rb
Instance Method Summary collapse
Instance Method Details
#min_max ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/simple_form_with_client_validation/components/min_max.rb', line 4 def min_max if numeric_validator = find_numericality_validator = numeric_validator. [:min] ||= minimum_value() [:max] ||= maximum_value() end nil end |