Class: RoleModelTables::Filters::RansackFilter
- Inherits:
-
Object
- Object
- RoleModelTables::Filters::RansackFilter
- Includes:
- ActionView::Context, ActionView::Helpers::TagHelper
- Defined in:
- lib/rolemodel_tables/models/ransack_filter.rb
Overview
Parent class for all custom filters.
Direct Known Subclasses
CollectionFilter, DateFilter, DateRangeFilter, NumberRangeFilter, TextFilter
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#form_options ⇒ Object
readonly
Returns the value of attribute form_options.
-
#ransack_matcher ⇒ Object
readonly
Returns the value of attribute ransack_matcher.
Instance Method Summary collapse
- #form_row(_form) ⇒ Object
-
#initialize(ransack_matcher, form_options = {}) ⇒ RansackFilter
constructor
A new instance of RansackFilter.
Constructor Details
#initialize(ransack_matcher, form_options = {}) ⇒ RansackFilter
Returns a new instance of RansackFilter.
13 14 15 16 |
# File 'lib/rolemodel_tables/models/ransack_filter.rb', line 13 def initialize(ransack_matcher, = {}) @ransack_matcher = ransack_matcher = end |
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
11 12 13 |
# File 'lib/rolemodel_tables/models/ransack_filter.rb', line 11 def filter @filter end |
#form_options ⇒ Object (readonly)
Returns the value of attribute form_options.
10 11 12 |
# File 'lib/rolemodel_tables/models/ransack_filter.rb', line 10 def end |
#ransack_matcher ⇒ Object (readonly)
Returns the value of attribute ransack_matcher.
10 11 12 |
# File 'lib/rolemodel_tables/models/ransack_filter.rb', line 10 def ransack_matcher @ransack_matcher end |
Instance Method Details
#form_row(_form) ⇒ Object
18 19 20 |
# File 'lib/rolemodel_tables/models/ransack_filter.rb', line 18 def form_row(_form) throw 'Subclass must override' end |