Class: WonderfulSimpleForms::SimpleForm::EnumInput
- Inherits:
-
SimpleForm::Inputs::CollectionSelectInput
- Object
- SimpleForm::Inputs::CollectionSelectInput
- WonderfulSimpleForms::SimpleForm::EnumInput
- Defined in:
- lib/wonderful_simple_forms/simple_form.rb
Instance Method Summary collapse
Instance Method Details
#collection ⇒ Object
31 32 33 |
# File 'lib/wonderful_simple_forms/simple_form.rb', line 31 def collection @collection ||= enum_list end |
#enum_list ⇒ Object
35 36 37 |
# File 'lib/wonderful_simple_forms/simple_form.rb', line 35 def enum_list object.class.method(attribute_name.to_s.pluralize.to_sym).call.keys end |