Class: ActiveAdmin::Filters::Active
- Inherits:
-
Object
- Object
- ActiveAdmin::Filters::Active
- Defined in:
- lib/active_admin/filters/active.rb
Instance Attribute Summary collapse
-
#filters ⇒ Object
Returns the value of attribute filters.
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource, search) ⇒ Active
constructor
A new instance of Active.
Constructor Details
#initialize(resource, search) ⇒ Active
Returns a new instance of Active.
16 17 18 19 |
# File 'lib/active_admin/filters/active.rb', line 16 def initialize(resource, search) @resource = resource @filters = build_filters(search.conditions) end |
Instance Attribute Details
#filters ⇒ Object
Returns the value of attribute filters.
8 9 10 |
# File 'lib/active_admin/filters/active.rb', line 8 def filters @filters end |
#resource ⇒ Object
Returns the value of attribute resource.
8 9 10 |
# File 'lib/active_admin/filters/active.rb', line 8 def resource @resource end |