You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background:
To run validations except in a certain context, we need to either
1. explicitly pass all validation contexts to the `on` option
2. access undocumented `validation_context`
Option 1 is error-prone. Additionally, adding the opposite behavior of
`on` was rejected rails#30710.
Solution:
Document `ActiveModel#validation_context` to make it clear that the API is
public.
Closerails#46391.
0 commit comments