cirandas.net

ref: master

lib/cache_counter.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# FIXME: this is placed on lib due to extensions
module CacheCounter

  def update_cache_counter(name, object, value)
    if object.present?
      object.class.update_counters(object.id, name => value)
    end
  end

end