smathieu/preload_counts — pull request #1 by vivrass (2012-04-20 13:29:43+00:00)
Title: Add rails 3 support

This fix will add Rails 3 support alongside Rails 2 support. It uses ActiveRecord::VERSION::MAJOR to distinguish between both implementation.