class Bullet::Detector::CounterCache
def add_counter_cache(object, associations)
def add_counter_cache(object, associations) return unless Bullet.start? return unless Bullet.counter_cache_enable? return unless object.id Bullet.debug("Detector::CounterCache#add_counter_cache", "object: #{object.bullet_ar_key}, associations: #{associations}") if conditions_met?(object.bullet_ar_key, associations) create_notification object.class.to_s, associations end end