Class: EffectiveSelectInput
- Inherits:
-
SimpleForm::Inputs::CollectionSelectInput
- Object
- SimpleForm::Inputs::CollectionSelectInput
- EffectiveSelectInput
- Defined in:
- app/models/inputs/effective_select_input.rb
Instance Method Summary collapse
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/models/inputs/effective_select_input.rb', line 7 def input( = nil) label_method, value_method = detect_collection_methods [:collection] = collection [:label_method] = label_method [:value_method] = value_method Inputs::EffectiveSelect::Input.new(object, object_name, template, attribute_name, , ((, ) || {})).to_html end |