lib/bullet.rb in bullet-4.11.2 vs lib/bullet.rb in bullet-4.11.3
- old
+ new
@@ -134,9 +134,10 @@
def notification_collector
Thread.current[:bullet_notification_collector]
end
def notification?
+ return unless start?
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
notification_collector.notifications_present?
end
def gather_inline_notifications