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