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

- old
+ new

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