module Bullet::ActiveRecord

def instantiate(rows)

def instantiate(rows)
  @bullet_eager_loadings = {}
  records = origin_instantiate(rows)
  if Bullet.start?
    @bullet_eager_loadings.each do |_klazz, eager_loadings_hash|
      objects = eager_loadings_hash.keys
      Bullet::Detector::UnusedEagerLoading.add_eager_loadings(objects, eager_loadings_hash[objects.first].to_a)
    end
  end
  records
end