# File lib/bullet/detector/unused_eager_loading.rb, line 14 def check_unused_preload_associations return unless Bullet.start? return unless Bullet.unused_eager_loading_enable? object_associations.each do |bullet_key, associations| object_association_diff = diff_object_associations bullet_key, associations next if object_association_diff.empty? Bullet.debug('detect unused preload', "object: #{bullet_key}, associations: #{object_association_diff}") create_notification(caller_in_project, bullet_key.bullet_class_name, object_association_diff) end end