Module: PolymorphicSelect::PolymorphicSelectHelper

Defined in:
lib/polymorphic_select/helper.rb

Instance Method Summary collapse

Instance Method Details

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



6
7
8
# File 'lib/polymorphic_select/helper.rb', line 6

def grouped_polymorphic_select(object_name, method, choices, options = {}, html_options = {})
  ActionView::Helpers::InstanceTag.new(object_name, method, self, options.delete(:object)).to_grouped_polymorphic_select_tag(choices, options, html_options)
end

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



3
4
5
# File 'lib/polymorphic_select/helper.rb', line 3

def polymorphic_select(object_name, method, choices, options = {}, html_options = {})
  ActionView::Helpers::InstanceTag.new(object_name, method, self, options.delete(:object)).to_polymorphic_select_tag(choices, options, html_options)
end