lib/bullet/detector/counter_cache.rb in bullet-5.7.6 vs lib/bullet/detector/counter_cache.rb in bullet-5.8.0

- old
+ new

@@ -16,9 +16,10 @@ end def add_possible_objects(object_or_objects) return unless Bullet.start? return unless Bullet.counter_cache_enable? + objects = Array(object_or_objects) return if objects.map(&:primary_key_value).compact.empty? Bullet.debug('Detector::CounterCache#add_possible_objects', "objects: #{objects.map(&:bullet_key).join(', ')}") objects.each { |object| possible_objects.add object.bullet_key }