lib/bullet/detector/counter_cache.rb in bullet-5.6.1 vs lib/bullet/detector/counter_cache.rb in bullet-5.7.0

- old
+ new

@@ -43,9 +43,10 @@ def impossible_objects Thread.current[:bullet_counter_impossible_objects] end private + def create_notification(klazz, associations) notify_associations = Array(associations) - Bullet.get_whitelist_associations(:counter_cache, klazz) if notify_associations.present? notice = Bullet::Notification::CounterCache.new klazz, notify_associations