5389c56292
Some validators, such as validators that inherit from `EachValidator`, mutate the options they receive. This can cause problems when passing multiple validators and options to `validates_with`. This can also be a problem if a validator deletes standard options such as `:if` and `:on`, because the validation callback would then not receive them. This commit modifies `validates_with` to `dup` options before passing them to validators, thus preventing these issues. Fixes #44460. Closes #44476. Co-authored-by: Dieter Späth <dieter.spaeth@lanes-planes.com> |
||
---|---|---|
.. | ||
cases | ||
models | ||
validators |