diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-04-30 08:18:48 -0400 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-05-05 16:25:47 -0500 |
commit | f7d7147ae6b40ab06750e58c2edcc1c8046f90cb (patch) | |
tree | c2d2b2d6228a7d28a6daea9e84e88a920cc09de4 /activemodel | |
parent | 151080a5f9377e64b85f20e20e449502a5cbc4c3 (diff) | |
download | rails-f7d7147ae6b40ab06750e58c2edcc1c8046f90cb.tar.gz rails-f7d7147ae6b40ab06750e58c2edcc1c8046f90cb.tar.bz2 rails-f7d7147ae6b40ab06750e58c2edcc1c8046f90cb.zip |
Active Model: Improve CHANGELOG and documentation for `validates_acceptance_of` [ci skip]
- Improve CHANGELOG entry for #18439.
- The documentation is updated as per changes in PR #18439 to the
`accept` option.
- The explanation about the virtual attribute is moved at the end so
that the arity of `accept` option is explained first.
- Added a note that `message` can also be passed to `validates_acceptance_of`.
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/CHANGELOG.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md index a35e20579d..d221eff1e7 100644 --- a/activemodel/CHANGELOG.md +++ b/activemodel/CHANGELOG.md @@ -123,11 +123,13 @@ *Wojciech Wnętrzak* -* Change validates_acceptance_of to accept true by default. +* Change `validates_acceptance_of` to accept `true` by default besides `'1'`. - The default for validates_acceptance_of is now "1" and true. - In the past, only "1" was the default and you were required to add - accept: true. + The default for `validates_acceptance_of` is now `'1'` and `true`. + In the past, only `"1"` was the default and you were required to pass + `accept: true` separately. + + *mokhan* * Remove deprecated `ActiveModel::Dirty#reset_#{attribute}` and `ActiveModel::Dirty#reset_changes`. |