# File lib/bullet/detector/n_plus_one_query.rb, line 28 def add_possible_objects(object_or_objects) return unless Bullet.start? return unless Bullet.n_plus_one_query_enable? objects = Array(object_or_objects) return if objects.map(&:primary_key_value).compact.empty? Bullet.debug('Detector::NPlusOneQuery#add_possible_objects'.freeze, "objects: #{objects.map(&:bullet_key).join(', '.freeze)}") objects.each { |object| possible_objects.add object.bullet_key } end