Module: ActiveAdmin::Filters::DSL

Defined in:
lib/active_admin/filters/dsl.rb

Instance Method Summary collapse

Instance Method Details

#filter(attribute, options = {}) ⇒ Object

For docs, please see ActiveAdmin::Filters::ResourceExtension#add_filter


6
7
8
# File 'lib/active_admin/filters/dsl.rb', line 6

def filter(attribute, options = {})
  config.add_filter(attribute, options)
end

#preserve_default_filters!Object

For docs, please see ActiveAdmin::Filters::ResourceExtension#preserve_default_filters!


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

def preserve_default_filters!
  config.preserve_default_filters!
end

#remove_filter(*attributes) ⇒ Object

For docs, please see ActiveAdmin::Filters::ResourceExtension#remove_filter


11
12
13
# File 'lib/active_admin/filters/dsl.rb', line 11

def remove_filter(*attributes)
  config.remove_filter(*attributes)
end