Sha256: 3e0f08a1d3cf8951503ba6f2d4b3f81eb610079678414e23bceb24b74880827a
Contents?: true
Size: 427 Bytes
Versions: 43
Compression:
Stored size: 427 Bytes
Contents
module Mongoid module Matcher # @api private module Ne module_function def matches?(exists, value, condition) case condition when ::Regexp, BSON::Regexp::Raw raise Errors::InvalidQuery, "'$ne' operator does not allow Regexp arguments: #{Errors::InvalidQuery.truncate_expr(condition)}" end !EqImpl.matches?(exists, value, condition, '$ne') end end end end
Version data entries
43 entries across 43 versions & 1 rubygems