mirror of https://github.com/rails/rails
Tell the user what to use instead of update_attributes/!
This commit is contained in:
parent
060fe16447
commit
0065011660
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue