Skip to content

Commit

Permalink
Just a small addition, so now we can remuve multiple filters inline
Browse files Browse the repository at this point in the history
  • Loading branch information
avelexvi committed Jan 9, 2014
1 parent 8c2ff62 commit db6660b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/active_admin/filters/dsl.rb
Expand Up @@ -8,8 +8,8 @@ def filter(attribute, options = {})
end

# For docs, please see ActiveAdmin::Filters::ResourceExtension#remove_filter
def remove_filter(attribute)
config.remove_filter(attribute)
def remove_filter(*attributes)
attributes.each { |attribute| config.remove_filter(attribute) }
end

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

0 comments on commit db6660b

Please sign in to comment.