method
scope
v6.1.7.7 -
Show latest stable
- Class:
ActiveRecord::Associations::Association
scope()public
No documentation available.
# File activerecord/lib/active_record/associations/association.rb, line 99
def scope
if (scope = klass.current_scope) && scope.try(:proxy_association) == self
scope.spawn
else
target_scope.merge!(association_scope)
end
end