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

PolymorphicReflection#scopes is no longer used since a5651eb5

This commit is contained in:
Ryuta Kamizono 2017-10-30 21:29:26 +09:00
parent ee44c1b6f1
commit 46a7b2e20c

View file

@ -1009,11 +1009,6 @@ module ActiveRecord
@previous_reflection = previous_reflection
end
def scopes
scopes = @previous_reflection.scopes
scopes << @previous_reflection.source_type_scope
end
def join_scopes(table, predicate_builder) # :nodoc:
scopes = @previous_reflection.join_scopes(table, predicate_builder) + super
scopes << @previous_reflection.source_type_scope