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