cedric/custom_counter_cache — pull request #1 by ktheory (2012-07-12 16:55:06+00:00)
Title: Avoid SQL query when counter is already loaded.

Support eagerly-loaded counters:

# Eagerly load counter
u = User.include(:counters).where(:counters => {:key =>
'published_count').first
# doesn't generate a query
u.published_count

I have some questions about how to test this too.