diff options
author | yui-knk <spiketeika@gmail.com> | 2016-01-29 14:10:33 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2016-01-30 14:44:19 +0900 |
commit | eba55447f092dfa99dc813dc7ea21cee9c26b85c (patch) | |
tree | 37f3368be97b3f9282dd9f9bbe4ac53a6d987efd /activerecord | |
parent | 10bc49710b7205a6172c3e072b3c77114fefd952 (diff) | |
download | rails-eba55447f092dfa99dc813dc7ea21cee9c26b85c.tar.gz rails-eba55447f092dfa99dc813dc7ea21cee9c26b85c.tar.bz2 rails-eba55447f092dfa99dc813dc7ea21cee9c26b85c.zip |
[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.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index 37e18626b5..666039a9f3 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -124,9 +124,20 @@ module ActiveRecord 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 @@ module ActiveRecord # 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. # |