Module: Phlexi::Form::Options::Max
- Included in:
- Builder
- Defined in:
- lib/phlexi/form/options/max.rb
Instance Method Summary collapse
Instance Method Details
#max(max_value = nil) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/phlexi/form/options/max.rb', line 7 def max(max_value = nil) if max_value.nil? .fetch(:max) { [:max] = calculate_max } else [:max] = max_value self end end |