Try this:
[model1, model2].map(&:valid?).all?
It’ll return true if both are valid, and create the errors on both instances.
Try this:
[model1, model2].map(&:valid?).all?
It’ll return true if both are valid, and create the errors on both instances.