diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2016-10-25 12:07:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-25 12:07:40 -0500 |
commit | c0e656fe40afbec5fe5851074515273303a942e7 (patch) | |
tree | 4b8b8280d017393bccbb55acdb1cf3fa3ca69963 | |
parent | c5d46a8a4e11a2e223186e2d04f4d2867df9d927 (diff) | |
parent | a26d4ad64b0451301711b7050dea2593c977cfd3 (diff) | |
download | rails-c0e656fe40afbec5fe5851074515273303a942e7.tar.gz rails-c0e656fe40afbec5fe5851074515273303a942e7.tar.bz2 rails-c0e656fe40afbec5fe5851074515273303a942e7.zip |
Merge pull request #25432 from kamipo/polymorphic_reflection_is_not_using_methods_from_through_reflection
`PolymorphicReflection` is not using the methods from `ThroughReflection`
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index 57020e00c9..ce70c29093 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -136,8 +136,8 @@ module ActiveRecord # BelongsToReflection # HasAndBelongsToManyReflection # ThroughReflection - # PolymorphicReflection - # RuntimeReflection + # PolymorphicReflection + # RuntimeReflection class AbstractReflection # :nodoc: def through_reflection? false @@ -988,7 +988,7 @@ module ActiveRecord delegate(*delegate_methods, to: :delegate_reflection) end - class PolymorphicReflection < ThroughReflection # :nodoc: + class PolymorphicReflection < AbstractReflection # :nodoc: def initialize(reflection, previous_reflection) @reflection = reflection @previous_reflection = previous_reflection |