delwyn/cached_at — pull request #3 by equivalent (2013-08-29 14:09:41+00:00)
Title: Model class cache key

Provides class method `cache_key` for model class

This can be used as parameter for Rails.cache.fetch

Rails.cache.fetch [Post, 'last_posts'] do
Post.last_posts
end
# => Cache fetch_hit: Post-1377768216/last_posts