diff options
author | Michael Kozono <mkozono@gmail.com> | 2013-05-21 00:32:34 -0600 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2013-05-21 00:32:34 -0600 |
commit | 928a58b2b86c4de966654743ea7d693efb8cd98f (patch) | |
tree | 4283e0639e981e43f958ec9902157fb859f3fce3 | |
parent | ef82b2c2d49c2a867a8d0ef1be709adc5170361c (diff) | |
download | rails-928a58b2b86c4de966654743ea7d693efb8cd98f.tar.gz rails-928a58b2b86c4de966654743ea7d693efb8cd98f.tar.bz2 rails-928a58b2b86c4de966654743ea7d693efb8cd98f.zip |
update_counters accepts a hash, not an array of hashes
-rw-r--r-- | activerecord/lib/active_record/counter_cache.rb | 2 |
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 |