Module: Enumerize::Hooks::SimpleFormBuilderExtension

Defined in:
lib/enumerize/hooks/simple_form.rb

Instance Method Summary collapse

Instance Method Details

#input(attribute_name, options = {}, &block) ⇒ Object



9
10
11
12
# File 'lib/enumerize/hooks/simple_form.rb', line 9

def input(attribute_name, options={}, &block)
  add_input_options_for_enumerized_attribute(attribute_name, options)
  super(attribute_name, options, &block)
end

#input_field(attribute_name, options = {}) ⇒ Object



14
15
16
17
# File 'lib/enumerize/hooks/simple_form.rb', line 14

def input_field(attribute_name, options={})
  add_input_options_for_enumerized_attribute(attribute_name, options)
  super(attribute_name, options)
end