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

#maxlengthObject



5
6
7
8
# File 'lib/simple_form/components/maxlength.rb', line 5

def maxlength
  input_html_options[:maxlength] ||= maximum_length_from_validation || limit
  nil
end