Tell the user what to use instead of update_attributes/!

This commit is contained in:
Xavier Noria 2019-01-23 22:10:07 +01:00
parent 060fe16447
commit 0065011660
1 changed files with 2 additions and 2 deletions

View File

@ -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)