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



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

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

#preserve_default_filters!Object

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



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

def preserve_default_filters!
  config.preserve_default_filters!
end

#remove_filter(*attributes) ⇒ Object

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



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

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