module Mongoid::Contextual::Queryable
Attributes
collection[R]
@attribute [r] collection The collection to query against. @attribute [r] criteria The criteria for the context. @attribute [r] klass The klass for the criteria.
criteria[R]
@attribute [r] collection The collection to query against. @attribute [r] criteria The criteria for the context. @attribute [r] klass The klass for the criteria.
klass[R]
@attribute [r] collection The collection to query against. @attribute [r] criteria The criteria for the context. @attribute [r] klass The klass for the criteria.
Public Instance Methods
blank?()
click to toggle source
Is the enumerable of matching documents empty?
@example Is the context empty?
context.blank?
@return [ true, false ] If the context is empty.
@since 3.0.0
# File lib/mongoid/contextual/queryable.rb, line 21 def blank? !exists? end
Also aliased as: empty?