• J
    Avoid confliting Kernel-named scopes on Relation · 1b773bca
    John Hawthorn 提交于
    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.
    1b773bca
named.rb 8.2 KB