method
scope
v4.2.7 -
Show latest stable
- Class:
ActiveRecord::Associations::CollectionAssociation
scope(opts = {})public
No documentation available.
# File activerecord/lib/active_record/associations/collection_association.rb, line 422
def scope(opts = {})
scope = super()
scope.none! if opts.fetch(:nullify, true) && null_scope?
scope
end