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



7
8
9
10
# File 'lib/enumerize/hooks/simple_form.rb', line 7

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



12
13
14
15
# File 'lib/enumerize/hooks/simple_form.rb', line 12

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