Sha256: 6f0282000da1a002ca4f8139c89e9a28d479808a83e2e3298c852c0132abf266
Contents?: true
Size: 377 Bytes
Versions: 39
Compression:
Stored size: 377 Bytes
Contents
module Mongoid module Matcher # @api private module Exists module_function def matches?(exists, value, condition) case condition when Range raise Errors::InvalidQuery, "$exists argument cannot be a Range: #{Errors::InvalidQuery.truncate_expr(condition)}" end exists == (condition || false) end end end end
Version data entries
39 entries across 39 versions & 1 rubygems