app/services/counter_cache_update/polymorphic_updator_service.rb
# Returns the class names of those records that has the given polymorphic relationship
Returns the class names of those records that has the given polymorphic relationship
Returns the class names of those records that has the given polymorphic relationship
def foreign_types
    @reflection.active_record
      .group(@reflection.foreign_type)
      .pluck(@reflection.foreign_type)
  end
def foreign_types @reflection . active_record . group ( @reflection . foreign_type ) . pluck ( @reflection . foreign_type ) end
Returns the class names of those records that has the given polymorphic relationship
Returns the class names of those records that has the given polymorphic relationship