diff options
author | Amparo Luna + Guillermo Iguaran <amparo.m.luna@gmail.com+guilleiguaran@gmail.com> | 2013-01-02 18:08:26 -0500 |
---|---|---|
committer | Amparo Luna + Guillermo Iguaran <amparo.m.luna@gmail.com+guilleiguaran@gmail.com> | 2013-01-03 12:04:25 -0500 |
commit | d826f14443a8030068324b1fcab8dc0f1fc87c9d (patch) | |
tree | d79445220d12c284bec5d80db0c3a919fa519a75 | |
parent | 0433d79724fc2f97208b1e3aec43335c7c33f7cc (diff) | |
download | rails-d826f14443a8030068324b1fcab8dc0f1fc87c9d.tar.gz rails-d826f14443a8030068324b1fcab8dc0f1fc87c9d.tar.bz2 rails-d826f14443a8030068324b1fcab8dc0f1fc87c9d.zip |
Add Changelog entry regarding update_attibutes being renamed to update
-rw-r--r-- | activerecord/CHANGELOG.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 756bad5507..0cbf664853 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,12 @@ ## Rails 4.0.0 (unreleased) ## +* Rename `update_attributes` to `update`, keep `update_attributes` as an alias for `update` method. + This is a soft-deprecation for `update_attributes`, although it will still work without any + deprecation message in 4.0 is recommended to start using `update` since `update_attributes` will be + deprecated and removed in future versions of Rails. + + *Amparo Luna + Guillermo Iguaran* + * `after_commit` and `after_rollback` now validate the `:on` option and raise an `ArgumentError` if it is not one of `:create`, `:destroy` or ``:update` |