Class: RoleModelTables::Filters::CollectionFilter
- Inherits:
-
RansackFilter
- Object
- RansackFilter
- RoleModelTables::Filters::CollectionFilter
- Defined in:
- lib/rolemodel_tables/models/filters/collection_filter.rb
Overview
Handle collection dropdowns.
Instance Attribute Summary
Attributes inherited from RansackFilter
#filter, #form_options, #ransack_matcher
Instance Method Summary collapse
Methods inherited from RansackFilter
Constructor Details
This class inherits a constructor from RoleModelTables::Filters::RansackFilter
Instance Method Details
#form_row(form) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/rolemodel_tables/models/filters/collection_filter.rb', line 7 def form_row(form) content_tag(:div, class: 'form__group') do [ label(form), collection_select(form) ].join(' ').html_safe end end |