diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-04-06 09:29:01 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-04-06 09:29:01 +0530 |
commit | 7f1fc1ee093732de7da9427370ff4858790a3684 (patch) | |
tree | 1f6f4bbe943b4e5e2d9532139c0d995e2c7d5bbd /guides/CHANGELOG.md | |
parent | cb4f6875b6a27894f3456cda79cb929f7243a1ac (diff) | |
download | rails-7f1fc1ee093732de7da9427370ff4858790a3684.tar.gz rails-7f1fc1ee093732de7da9427370ff4858790a3684.tar.bz2 rails-7f1fc1ee093732de7da9427370ff4858790a3684.zip |
Update example of passing a proc to `:message` option for validating records [ci skip]
- This change is made as the behavior for `:message` proc was changed in
https://github.com/rails/rails/pull/24119.
- Also check
https://github.com/rails/rails/pull/24431#issuecomment-206106790 for
reference.
Diffstat (limited to 'guides/CHANGELOG.md')
-rw-r--r-- | guides/CHANGELOG.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/CHANGELOG.md b/guides/CHANGELOG.md index d35d0f1976..8132f77b4e 100644 --- a/guides/CHANGELOG.md +++ b/guides/CHANGELOG.md @@ -1,3 +1,9 @@ +* Update example of passing a proc to `:message` option for validating records. + + This behavior was recently changed in https://github.com/rails/rails/pull/24119 to + pass the object being validated as first argument to the `:message` proc + instead of key of the field being validated. + ## Rails 5.0.0.beta3 (February 24, 2016) ## * No changes. |