aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2014-08-19 17:44:08 -0700
committerGodfrey Chan <godfreykfc@gmail.com>2014-08-19 17:45:28 -0700
commit9733dc5b39a5c8ce53febc4b55c3b2643b14dd87 (patch)
tree286c90c8aab283ffe1758c6538dd88fbb16de7ff
parent35b2d3f56c00dc7f69fe3c3ed303eaf1a30fc8ad (diff)
downloadrails-9733dc5b39a5c8ce53febc4b55c3b2643b14dd87.tar.gz
rails-9733dc5b39a5c8ce53febc4b55c3b2643b14dd87.tar.bz2
rails-9733dc5b39a5c8ce53febc4b55c3b2643b14dd87.zip
Synced Active Model changelogs [ci skip]
Godfrey Chan, Genadi Samokovarov
-rw-r--r--guides/source/4_2_release_notes.md20
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.