1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #25432 from kamipo/polymorphic_reflection_is_not_using_methods_from_through_reflection

`PolymorphicReflection` is not using the methods from `ThroughReflection`
This commit is contained in:
Eileen M. Uchitelle 2016-10-25 12:07:40 -05:00 committed by GitHub
commit c0e656fe40

View file

@ -988,7 +988,7 @@ module ActiveRecord
delegate(*delegate_methods, to: :delegate_reflection) delegate(*delegate_methods, to: :delegate_reflection)
end end
class PolymorphicReflection < ThroughReflection # :nodoc: class PolymorphicReflection < AbstractReflection # :nodoc:
def initialize(reflection, previous_reflection) def initialize(reflection, previous_reflection)
@reflection = reflection @reflection = reflection
@previous_reflection = previous_reflection @previous_reflection = previous_reflection