module Bullet def self.collected_notifications_of_class(notification_class) Bullet.notification_collector.collection.select do |notification| notification.is_a? notification_class end end def self.collected_counter_cache_notifications collected_notifications_of_class Bullet::Notification::CounterCache end def self.collected_n_plus_one_query_notifications collected_notifications_of_class Bullet::Notification::NPlusOneQuery end def self.collected_unused_eager_association_notifications collected_notifications_of_class Bullet::Notification::UnusedEagerLoading end end module Bullet module Detector class Association class <