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.bullet_primary_key_value
  Bullet.debug(
    'Detector::CounterCache#add_counter_cache',
    "object: #{object.bullet_key}, associations: #{associations}"
  )
  create_notification object.class.to_s, associations if conditions_met?(object, associations)
end