diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-08-19 17:44:08 -0700 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-08-19 17:45:28 -0700 |
commit | 9733dc5b39a5c8ce53febc4b55c3b2643b14dd87 (patch) | |
tree | 286c90c8aab283ffe1758c6538dd88fbb16de7ff /guides/source | |
parent | 35b2d3f56c00dc7f69fe3c3ed303eaf1a30fc8ad (diff) | |
download | rails-9733dc5b39a5c8ce53febc4b55c3b2643b14dd87.tar.gz rails-9733dc5b39a5c8ce53febc4b55c3b2643b14dd87.tar.bz2 rails-9733dc5b39a5c8ce53febc4b55c3b2643b14dd87.zip |
Synced Active Model changelogs [ci skip]
Godfrey Chan, Genadi Samokovarov
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/4_2_release_notes.md | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/guides/source/4_2_release_notes.md b/guides/source/4_2_release_notes.md index f710b8bac9..7bb1b06a5f 100644 --- a/guides/source/4_2_release_notes.md +++ b/guides/source/4_2_release_notes.md @@ -406,13 +406,25 @@ Please refer to the [Changelog][active-model] for detailed changes. ### Removals * Removed deprecated `Validator#setup` without replacement. - ([Pull Request](https://github.com/rails/rails/pull/15617)) + ([Pull Request](https://github.com/rails/rails/pull/10716)) + +### Deprecations + +* Deprecated reset_#{attribute} in favor of restore_#{attribute}. + ([Pull Request](https://github.com/rails/rails/pull/16180)) + +* Deprecated ActiveModel::Dirty#reset_changes in favor of #clear_changes_information. + ([Pull Request](https://github.com/rails/rails/pull/16180)) ### Notable changes -* Introduced the `undo_changes` method in `ActiveModel::Dirty` to restore the - changed (dirty) attributes to their previous values. - ([Pull Request](https://github.com/rails/rails/pull/14861)) +* Introduced the `restore_attributes` method in `ActiveModel::Dirty` to restore + the changed (dirty) attributes to their previous values. + (Pull Request [1](https://github.com/rails/rails/pull/14861), [2](https://github.com/rails/rails/pull/16180)) + +* `has_secure_password` no longer disallow blank passwords (i.e. passwords + that contains only spaces) by default. + ([Pull Request](https://github.com/rails/rails/pull/16412)) * `has_secure_password` now verifies that the given password is less than 72 characters if validations are enabled. |