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_class, params) ⇒ Active

Returns a new instance of Active.


9
10
11
12
13
14
# File 'lib/active_admin/filters/active.rb', line 9

def initialize(resource_class, params)
  @resource_class = resource_class
  @params = params.respond_to?(:to_unsafe_h) ? params.to_unsafe_h : params
  @scope = humanize_scope
  @filters = build_filters
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

#scopeObject

Returns the value of attribute scope


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

def scope
  @scope
end