# File lib/bullet/detector/counter_cache.rb, line 7 def add_counter_cache(object, associations) return unless Bullet.start? return unless Bullet.counter_cache_enable? return unless object.primary_key_value Bullet.debug('Detector::CounterCache#add_counter_cache', "object: #{object.bullet_key}, associations: #{associations}") if conditions_met?(object, associations) create_notification object.class.to_s, associations end end