Class: ActiveAdmin::Filters::Active

Inherits:
Object
  • Object
show all
Defined in:
lib/active_admin/filters/active.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource, search) ⇒ Active

Returns a new instance of Active.

Parameters:

See Also:

  • ResourceController::DataAcces#apply_filtering

15
16
17
18
# File 'lib/active_admin/filters/active.rb', line 15

def initialize(resource, search)
  @resource = resource
  @filters = build_filters(search.conditions)
end

Instance Attribute Details

#filtersObject

Returns the value of attribute filters


7
8
9
# File 'lib/active_admin/filters/active.rb', line 7

def filters
  @filters
end

#resourceObject

Returns the value of attribute resource


7
8
9
# File 'lib/active_admin/filters/active.rb', line 7

def resource
  @resource
end