gregbell/active_admin — pull request #897 by comboy (2012-01-07 16:01:15+00:00)
Title: fix count display for collections with GROUP BY

When used with something with GROUP BY as collection, size method will not return number, but hash instead. So instead of having some "Displaying all 123 Foos", we get "Displaying all {"bar"=> 34, "baz" => 54} pages". Using total_count in case of a single page same as it is used for many pages, fixes the problem.