Sha256: 71d00ed5cd980ae609f4d68966dd5d89426d8ad9b5f56d457379ffdb2b368ed5
Contents?: true
Size: 622 Bytes
Versions: 81
Compression:
Stored size: 622 Bytes
Contents
# encoding: utf-8 module Mongoid module Contextual module Queryable # @attribute [r] collection The collection to query against. # @attribute [r] criteria The criteria for the context. # @attribute [r] klass The klass for the criteria. attr_reader :collection, :criteria, :klass # 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 def blank? !exists? end alias :empty? :blank? end end end
Version data entries
81 entries across 76 versions & 6 rubygems