diff options
author | Eddie Lebow <elebow@users.noreply.github.com> | 2018-02-14 21:33:02 -0500 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2018-02-17 13:58:54 -0800 |
commit | 5645149d3a27054450bd1130ff5715504638a5f5 (patch) | |
tree | 86605ba3daab883939eda991d6f975c07cdff681 /guides | |
parent | 56278a7a1e2efcf080259459f4f0ab40f29b1fca (diff) | |
download | rails-5645149d3a27054450bd1130ff5715504638a5f5.tar.gz rails-5645149d3a27054450bd1130ff5715504638a5f5.tar.bz2 rails-5645149d3a27054450bd1130ff5715504638a5f5.zip |
Deprecate update_attributes and update_attributes!
Closes #31998
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_callbacks.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_callbacks.md b/guides/source/active_record_callbacks.md index 630dafe632..4f54b4c206 100644 --- a/guides/source/active_record_callbacks.md +++ b/guides/source/active_record_callbacks.md @@ -264,7 +264,7 @@ The whole callback chain is wrapped in a transaction. If any callback raises an throw :abort ``` -WARNING. Any exception that is not `ActiveRecord::Rollback` or `ActiveRecord::RecordInvalid` will be re-raised by Rails after the callback chain is halted. Raising an exception other than `ActiveRecord::Rollback` or `ActiveRecord::RecordInvalid` may break code that does not expect methods like `save` and `update_attributes` (which normally try to return `true` or `false`) to raise an exception. +WARNING. Any exception that is not `ActiveRecord::Rollback` or `ActiveRecord::RecordInvalid` will be re-raised by Rails after the callback chain is halted. Raising an exception other than `ActiveRecord::Rollback` or `ActiveRecord::RecordInvalid` may break code that does not expect methods like `save` and `update` (which normally try to return `true` or `false`) to raise an exception. Relational Callbacks -------------------- |