lib/attestor/policy/xor.rb in attestor-0.3.0 vs lib/attestor/policy/xor.rb in attestor-0.4.0

- old
+ new

@@ -23,10 +23,10 @@ # composition.validate # # => Policy::InvalidError # # @return [undefined] def validate - return if any_valid? && any_invalid? + return if detect(&:valid?) && detect(&:invalid?) super end end # class Xor