lib/mongoid/matchers/lte.rb in mongoid-1.1.4 vs lib/mongoid/matchers/lte.rb in mongoid-1.2.0

- old
+ new

@@ -2,10 +2,10 @@ module Mongoid #:nodoc: module Matchers #:nodoc: class Lte < Default # Return true if the attribute is less than or equal to the value. def matches?(value) - @attribute ? @attribute <= first(value) : false + determine(value, :<=) end end end end