Skip to content
Permalink
Browse files

Tell the user what to use instead of update_attributes/!

  • Loading branch information...
fxn committed Jan 23, 2019
1 parent 060fe16 commit 00650116608620cca16a51027ffc56942ce63645
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/persistence.rb
@@ -436,7 +436,7 @@ def update(attributes)
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 @@ def update!(attributes)
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)

0 comments on commit 0065011

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.