Module: PolymorphicSelect::FormBuilderExt
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/polymorphic_select/form_builder_ext.rb
Instance Method Summary collapse
- #grouped_polymorphic_select(method, choices, options = {}, html_options = {}) ⇒ Object
- #polymorphic_select(method, choices, options = {}, html_options = {}) ⇒ Object
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, = {}, = {}) @template.grouped_polymorphic_select(@object_name, method, choices, (), ) 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, = {}, = {}) @template.polymorphic_select(@object_name, method, choices, (), ) end |