mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove unneeded curlies in AR::Base.update example
This commit is contained in:
parent
3fbfb81aa0
commit
f3e4d14ab9
1 changed files with 2 additions and 2 deletions
|
@ -737,12 +737,12 @@ module ActiveRecord #:nodoc:
|
|||
# ==== Parameters
|
||||
#
|
||||
# * +id+ - This should be the id or an array of ids to be updated.
|
||||
# * +attributes+ - This should be a Hash of attributes to be set on the object, or an array of Hashes.
|
||||
# * +attributes+ - This should be a hash of attributes to be set on the object, or an array of hashes.
|
||||
#
|
||||
# ==== Examples
|
||||
#
|
||||
# # Updating one record:
|
||||
# Person.update(15, { :user_name => 'Samuel', :group => 'expert' })
|
||||
# Person.update(15, :user_name => 'Samuel', :group => 'expert')
|
||||
#
|
||||
# # Updating multiple records:
|
||||
# people = { 1 => { "first_name" => "David" }, 2 => { "first_name" => "Jeremy" } }
|
||||
|
|
Loading…
Reference in a new issue