Sha256: 7143b8b87f2bdcfce9a0184bd4544aaa4d2adcb5c2ddda55f95dc31be113b2c6
Contents?: true
Size: 492 Bytes
Versions: 43
Compression:
Stored size: 492 Bytes
Contents
module Mongoid module Matcher # @api private module Lt module_function def matches?(exists, value, condition) case condition when Range raise Errors::InvalidQuery, "$lt argument cannot be a Range: #{Errors::InvalidQuery.truncate_expr(condition)}" end FieldOperator.apply_array_field_operator(exists, value, condition) do |v| FieldOperator.apply_comparison_operator(:<, v, condition) end end end end end
Version data entries
43 entries across 43 versions & 1 rubygems