aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2016-10-25 12:07:40 -0500
committerGitHub <noreply@github.com>2016-10-25 12:07:40 -0500
commitc0e656fe40afbec5fe5851074515273303a942e7 (patch)
tree4b8b8280d017393bccbb55acdb1cf3fa3ca69963 /activerecord
parentc5d46a8a4e11a2e223186e2d04f4d2867df9d927 (diff)
parenta26d4ad64b0451301711b7050dea2593c977cfd3 (diff)
downloadrails-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`
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/reflection.rb6
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