diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-15 16:00:50 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-15 16:04:31 -0300 |
commit | 66d0a0153578ce760d822580c5b8c0b726042ac2 (patch) | |
tree | 9307990257adef0f8908d8ef150677ef87bf2947 /activemodel/CHANGELOG.md | |
parent | 101cf688987ec39c05859061677f99b43facc2a2 (diff) | |
download | rails-66d0a0153578ce760d822580c5b8c0b726042ac2.tar.gz rails-66d0a0153578ce760d822580c5b8c0b726042ac2.tar.bz2 rails-66d0a0153578ce760d822580c5b8c0b726042ac2.zip |
Deprecate ActiveModel::Dirty#reset_changes in favor of #clear_changes_information
This method name is causing confusion with the `reset_#{attribute}`
methods. While `reset_name` set the value of the name attribute for the
previous value the `reset_changes` only discard the changes and previous
changes.
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r-- | activemodel/CHANGELOG.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md index 2565b24c97..86f803d130 100644 --- a/activemodel/CHANGELOG.md +++ b/activemodel/CHANGELOG.md @@ -1,3 +1,10 @@ +* Deprecate `ActiveModel::Dirty#reset_changes` in favor of `#clear_changes_information`. + + This method name is causing confusion with the `reset_#{attribute}` + methods. While `reset_name` set the value of the name attribute for the + previous value `reset_changes` only discard the changes and previous + changes. + * Added `undo_changes` method to `ActiveModel::Dirty` API to restore all the changed values to the previous data. |