[ci skip] Update internal documents about ActiveRecord's Reflection
ActiveRecord's Reflection was refactored by f8d2899d12d59360f29c5eb6a1b1a8fe4ec82ca0 . Top of ancestors chain was changed to `AbstractReflection` from `MacroReflection`, and new Reflections were added.
This commit is contained in:
parent
10bc49710b
commit
eba55447f0
@ -124,9 +124,20 @@ def clear_reflections_cache # :nodoc:
|
||||
end
|
||||
end
|
||||
|
||||
# Holds all the methods that are shared between MacroReflection, AssociationReflection
|
||||
# and ThroughReflection
|
||||
class AbstractReflection # :nodoc:
|
||||
# Holds all the methods that are shared between MacroReflection and ThroughReflection.
|
||||
#
|
||||
# AbstractReflection
|
||||
# MacroReflection
|
||||
# AggregateReflection
|
||||
# AssociationReflection
|
||||
# HasManyReflection
|
||||
# HasOneReflection
|
||||
# BelongsToReflection
|
||||
# HasAndBelongsToManyReflection
|
||||
# ThroughReflection
|
||||
# PolymorphicReflection
|
||||
# RuntimeReflection
|
||||
class AbstractReflection # :nodoc:
|
||||
def table_name
|
||||
klass.table_name
|
||||
end
|
||||
@ -232,14 +243,6 @@ def alias_candidate(name)
|
||||
|
||||
# Base class for AggregateReflection and AssociationReflection. Objects of
|
||||
# AggregateReflection and AssociationReflection are returned by the Reflection::ClassMethods.
|
||||
#
|
||||
# MacroReflection
|
||||
# AggregateReflection
|
||||
# AssociationReflection
|
||||
# HasManyReflection
|
||||
# HasOneReflection
|
||||
# BelongsToReflection
|
||||
# ThroughReflection
|
||||
class MacroReflection < AbstractReflection
|
||||
# Returns the name of the macro.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user