class Bullet::Detector::CounterCache

def add_possible_objects(object_or_objects)

def add_possible_objects(object_or_objects)
  return unless Bullet.start?
  return unless Bullet.counter_cache_enable?
  objects = Array.wrap(object_or_objects)
  return if objects.map(&:bullet_primary_key_value).compact.empty?
  Bullet.debug(
    'Detector::CounterCache#add_possible_objects',
    "objects: #{objects.map(&:bullet_key).join(', ')}"
  )
  objects.each { |object| possible_objects.add object.bullet_key }
end