1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/scoping
John Hawthorn 1b773bca5c Avoid confliting Kernel-named scopes on Relation
A previous change made singleton methods eagerly define their relation
methods if it shared a name with a method on Kernel. This caused issues
with a few methods which were both defined on Kernel and on
AcitveRecord::Relation.

This commit avoids defining the method if it exists on AR::Relation.
2020-05-12 11:10:39 -07:00
..
default.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
named.rb Avoid confliting Kernel-named scopes on Relation 2020-05-12 11:10:39 -07:00