class Bullet::Detector::NPlusOneQuery
def add_possible_objects(object_or_objects)
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(&:id).compact.empty? Bullet.debug("Detector::NPlusOneQuery#add_possible_objects", "objects: #{objects.map(&:bullet_ar_key).join(', ')}") objects.each { |object| possible_objects.add object.bullet_ar_key } end