Module: PolymorphicSelect::InstanceTagExt

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

Instance Method Summary collapse

Instance Method Details

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



10
11
12
# File 'lib/polymorphic_select/instance_tag_ext.rb', line 10

def to_grouped_polymorphic_select_tag(choices, options = {}, html_options = {})
  polymorphic_selector(choices, options, html_options).select_polymorph.html_safe
end

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



7
8
9
# File 'lib/polymorphic_select/instance_tag_ext.rb', line 7

def to_polymorphic_select_tag(choices, options = {}, html_options = {})
  polymorphic_selector(choices, options, html_options).select_polymorph.html_safe
end