gregbell/active_admin — pull request #1081 by icrowley (2012-02-28 10:30:55+00:00)
Title: :distinct => true option to get_scope_count method

Added :distinct => true option to get_scope_count method, because without it method has returned wrong counter for scopes like this:
scope :admins, select('DISTINCT ON (users.id) users.*').joins(:roles).where("roles.name = 'admin'")