Module: PolymorphicSelect::FormBuilderExt

Extended by:
ActiveSupport::Concern
Defined in:
lib/polymorphic_select/form_builder_ext.rb

Instance Method Summary collapse

Instance Method Details

#grouped_polymorphic_select(method, choices, options = {}, html_options = {}) ⇒ Object



8
9
10
# File 'lib/polymorphic_select/form_builder_ext.rb', line 8

def grouped_polymorphic_select(method, choices, options = {}, html_options = {})
  @template.grouped_polymorphic_select(@object_name, method, choices, objectify_options(options), html_options)
end

#polymorphic_select(method, choices, options = {}, html_options = {}) ⇒ Object



5
6
7
# File 'lib/polymorphic_select/form_builder_ext.rb', line 5

def polymorphic_select(method, choices, options = {}, html_options = {})
  @template.polymorphic_select(@object_name, method, choices, objectify_options(options), html_options)
end