lib/key_vortex/constraint/base.rb in key-vortex-0.1.3 vs lib/key_vortex/constraint/base.rb in key-vortex-0.1.4
- old
+ new
@@ -6,10 +6,10 @@
def applies_to?(constraint)
attribute == constraint.attribute
end
def within?(constraint)
- !applies_to?(constraint) || within_applicable?(constraint)
+ constraint.instance_of?(self.class)
end
def to_s
"#{attribute}: #{value}"
end