gregbell/active_admin — pull request #1327 by tokland (2012-05-15 18:51:44+00:00)
Title: Problem with scopes when filtering

I run into a problem when using filters with a default scope. The method "current_scope" (lib/active_admin/resource_controller/collection.rb) checks params[:scope] to see if there is an active scope, but this maybe empty (that's the case for the default scope). The solution is simple: check it with present?. I removed also the double check.