gregbell/active_admin — pull request #847 by samvincent (2011-12-13 21:33:08+00:00)
Title: Filters should not clear scoped collection for scope counts

This finally fixes the issue referenced in Issue #479 that was closed. I'm not sure that it actually duplicates issue #70.

Basically, when you `scope_to :current_admin`, all the scope counts would be correct for the scope. As soon as you filtered the page, the scope counts would represent the base resource class count.. which exposed to customers just how many posts all your authors created for example. This pull request fixes this.