Module: PolymorphicSelect::PolymorphicSelectHelper
- Defined in:
- lib/polymorphic_select/helper.rb
Instance Method Summary collapse
- #grouped_polymorphic_select(object_name, method, choices, options = {}, html_options = {}) ⇒ Object
- #polymorphic_select(object_name, method, choices, options = {}, html_options = {}) ⇒ Object
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, = {}, = {}) ActionView::Helpers::InstanceTag.new(object_name, method, self, .delete(:object)).to_grouped_polymorphic_select_tag(choices, , ) 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, = {}, = {}) ActionView::Helpers::InstanceTag.new(object_name, method, self, .delete(:object)).to_polymorphic_select_tag(choices, , ) end |