mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
update_counters accepts a hash, not an array of hashes
This commit is contained in:
parent
ef82b2c2d4
commit
928a58b2b8
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ module ActiveRecord
|
|||
# ==== Parameters
|
||||
#
|
||||
# * +id+ - The id of the object you wish to update a counter on or an Array of ids.
|
||||
# * +counters+ - An Array of Hashes containing the names of the fields
|
||||
# * +counters+ - A Hash containing the names of the fields
|
||||
# to update as keys and the amount to update the field by as values.
|
||||
#
|
||||
# ==== Examples
|
||||
|
|
Loading…
Reference in a new issue