Proposal: Multiple Validation Contexts

Hey all,

Validations are a relatively obscure and not particularly well documented feature that do come in handy when using particularly complex models with complex lifecycles and states. Ideally, I’d use Concerns to dynamically add validations but that hasn’t been proven fruitful. I was wondering what you guys and gals think of extending validation contexts to be an array, so that one could pass in multiple contexts?

Nam

Already on master: https://github.com/rails/rails/pull/21069.

Reported in This Week in Rails here: https://rails-weekly.ongoodbits.com/2015/09/11/performance-mysql-prepared-statements-and-more :wink:

Woo! Thank you so much.