Class: Formtastic::Inputs::Select2Input
- Inherits:
-
SelectInput
- Object
- SelectInput
- Formtastic::Inputs::Select2Input
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/formtastic/inputs/select2_input.rb
Instance Method Summary collapse
Instance Method Details
#input_html_options ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/formtastic/inputs/select2_input.rb', line 4 def = super [:class] = [[:class], 'auto-static-select2'].compact.join(' ') [:data] ||= {} [:data][:placeholder] ||= ([:placeholder] || localized_label || humanized_method_name) end |