lib/mongoid/matchable/and.rb in mongoid-5.1.0 vs lib/mongoid/matchable/and.rb in mongoid-5.1.1

- old
+ new

@@ -18,10 +18,10 @@ def matches?(conditions) conditions.each do |condition| condition.keys.each do |k| key = k value = condition[k] - return false unless Matchable.matcher(document, key, value).matches?(value) + return false unless document.matches?(key => value) end end true end end