aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorEddie Lebow <elebow@users.noreply.github.com>2018-02-14 21:33:02 -0500
committerJeremy Daer <jeremydaer@gmail.com>2018-02-17 13:58:54 -0800
commit5645149d3a27054450bd1130ff5715504638a5f5 (patch)
tree86605ba3daab883939eda991d6f975c07cdff681 /activerecord/lib/active_record/persistence.rb
parent56278a7a1e2efcf080259459f4f0ab40f29b1fca (diff)
downloadrails-5645149d3a27054450bd1130ff5715504638a5f5.tar.gz
rails-5645149d3a27054450bd1130ff5715504638a5f5.tar.bz2
rails-5645149d3a27054450bd1130ff5715504638a5f5.zip
Deprecate update_attributes and update_attributes!
Closes #31998
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r--activerecord/lib/active_record/persistence.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index a45d011d75..88b971327b 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -418,6 +418,7 @@ module ActiveRecord
end
alias update_attributes update
+ deprecate :update_attributes
# Updates its receiver just like #update but calls #save! instead
# of +save+, so an exception is raised if the record is invalid and saving will fail.
@@ -431,6 +432,7 @@ module ActiveRecord
end
alias update_attributes! update!
+ deprecate :update_attributes!
# Equivalent to <code>update_columns(name => value)</code>.
def update_column(name, value)