lib/key_vortex/constraint/maximum.rb in key-vortex-0.1.3 vs lib/key_vortex/constraint/maximum.rb in key-vortex-0.1.4

- old
+ new

@@ -14,11 +14,11 @@ def attribute :maximum end - def within_applicable?(constraint) - value <= constraint.value + def within?(constraint) + super && value <= constraint.value end end end end