Module: SimpleForm::Components::Maxlength
- Included in:
- Inputs::Base
- Defined in:
- lib/simple_form/components/maxlength.rb
Overview
Needs to be enabled in order to do automatic lookups.
Instance Method Summary collapse
Instance Method Details
#maxlength ⇒ Object
5 6 7 8 |
# File 'lib/simple_form/components/maxlength.rb', line 5 def maxlength [:maxlength] ||= maximum_length_from_validation || limit nil end |