cache_counter_helper.rb 176 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 module CacheCounterHelper def update_cache_counter(name, object, value) if object.present? object.class.update_counters(object.id, name => value) end end end