add comment

This commit is contained in:
Taylor Griffin
2015-01-15 21:35:10 +11:00
parent 55ba535353
commit d5aef16860

View File

@@ -24,6 +24,7 @@ module ApplicationHelper
:target => "_blank"
end
# Produces a cache key for uniquely identifying cached fragments.
def cache_key_for(klass, identifier="all")
count = klass.count
max_updated_at = klass.maximum(:updated_at).try(:utc).try(:to_s, :number)