Module: PolymorphicSelect::InstanceTagExt
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/polymorphic_select/instance_tag_ext.rb
Instance Method Summary collapse
- #to_grouped_polymorphic_select_tag(choices, options = {}, html_options = {}) ⇒ Object
- #to_polymorphic_select_tag(choices, options = {}, html_options = {}) ⇒ Object
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, = {}, = {}) polymorphic_selector(choices, , ).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, = {}, = {}) polymorphic_selector(choices, , ).select_polymorph.html_safe end |