aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/counter_cache.rb
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2013-05-21 00:32:34 -0600
committerMichael Kozono <mkozono@gmail.com>2013-05-21 00:32:34 -0600
commit928a58b2b86c4de966654743ea7d693efb8cd98f (patch)
tree4283e0639e981e43f958ec9902157fb859f3fce3 /activerecord/lib/active_record/counter_cache.rb
parentef82b2c2d49c2a867a8d0ef1be709adc5170361c (diff)
downloadrails-928a58b2b86c4de966654743ea7d693efb8cd98f.tar.gz
rails-928a58b2b86c4de966654743ea7d693efb8cd98f.tar.bz2
rails-928a58b2b86c4de966654743ea7d693efb8cd98f.zip
update_counters accepts a hash, not an array of hashes
Diffstat (limited to 'activerecord/lib/active_record/counter_cache.rb')
-rw-r--r--activerecord/lib/active_record/counter_cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/counter_cache.rb b/activerecord/lib/active_record/counter_cache.rb
index 81cca37939..e1faadf1ab 100644
--- a/activerecord/lib/active_record/counter_cache.rb
+++ b/activerecord/lib/active_record/counter_cache.rb
@@ -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