Sha256: 629549c76f288bf7a82daf1cc2bc78c467d21098683d063fc083efdd6cf82c7a
Contents?: true
Size: 606 Bytes
Versions: 9
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true 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. def blank? !exists? end alias :empty? :blank? end end end
Version data entries
9 entries across 9 versions & 1 rubygems