aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2019-01-23 22:10:07 +0100
committerXavier Noria <fxn@hashref.com>2019-01-23 22:26:22 +0100
commit00650116608620cca16a51027ffc56942ce63645 (patch)
treee645ac36740a18460e7cbec68c2fe11454eb801e
parent060fe164471213209de9637c19ee5c25492d0c1c (diff)
downloadrails-00650116608620cca16a51027ffc56942ce63645.tar.gz
rails-00650116608620cca16a51027ffc56942ce63645.tar.bz2
rails-00650116608620cca16a51027ffc56942ce63645.zip
Tell the user what to use instead of update_attributes/!
-rw-r--r--activerecord/lib/active_record/persistence.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index c2b60610ce..2213fbefb4 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -436,7 +436,7 @@ module ActiveRecord
end
alias update_attributes update
- deprecate :update_attributes
+ deprecate update_attributes: "please, use update instead"
# 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.
@@ -450,7 +450,7 @@ module ActiveRecord
end
alias update_attributes! update!
- deprecate :update_attributes!
+ deprecate update_attributes!: "please, use update! instead"
# Equivalent to <code>update_columns(name => value)</code>.
def update_column(name, value)