Module: Enumerize::Hooks::SimpleFormBuilderExtension
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/enumerize/hooks/simple_form.rb
Instance Method Summary collapse
- #input_field_with_enumerize(attribute_name, options = {}) ⇒ Object
- #input_with_enumerize(attribute_name, options = {}, &block) ⇒ Object
Instance Method Details
#input_field_with_enumerize(attribute_name, options = {}) ⇒ Object
18 19 20 21 |
# File 'lib/enumerize/hooks/simple_form.rb', line 18 def input_field_with_enumerize(attribute_name, ={}) (attribute_name, ) input_field_without_enumerize(attribute_name, ) end |
#input_with_enumerize(attribute_name, options = {}, &block) ⇒ Object
13 14 15 16 |
# File 'lib/enumerize/hooks/simple_form.rb', line 13 def input_with_enumerize(attribute_name, ={}, &block) (attribute_name, ) input_without_enumerize(attribute_name, , &block) end |