lib/metaractor/parameters.rb in metaractor-0.5.0 vs lib/metaractor/parameters.rb in metaractor-1.1.0

- old
+ new

@@ -97,11 +97,9 @@ messages << message end case operator when :or - # We can't test for #one? here as that breaks interactors with the same setup sharing a context. - # This happens in almost all of our organizers. return valids.any?, "(#{messages.join(' or ')})" when :xor return valids.one?, "(#{messages.join(' xor ')})" when :and return valids.all?, "(#{messages.join(' and ')})"