rails/rails — pull request #13754 by vpuzzella (2014-01-18 18:09:23+00:00)
Title: Ability to specify multiple contexts when defining a validation.

Example:

validates_presence_of :name, on: [:update, :custom_validation_context]