This method is deprecated or moved on the latest stable version.
The last existing version (v5.0.0.1) is shown here.
scoping()
public
We don’t want this object to be put on the scoping
stack, because that could create
an infinite loop where we call an @association method, which gets the
current scope, which is this object, which delegates to @association, and
so on.
# File activerecord/lib/active_record/associations/collection_proxy.rb, line 906
def scoping
@association.scope.scoping { yield }
end