lib/attestor/policy/not.rb in attestor-0.3.0 vs lib/attestor/policy/not.rb in attestor-0.4.0
- old
+ new
@@ -35,10 +35,10 @@
# composition.validate
# # => Policy::InvalidError
#
# @return [undefined]
def validate
- return unless any_valid?
+ return unless detect(&:valid?)
super
end
end # class And