aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/counter_cache.rb
diff options
context:
space:
mode:
authorMatthew Robertson <matthewrobertson03@gmail.com>2012-12-02 19:00:12 -0800
committerMatthew Robertson <matthewrobertson03@gmail.com>2012-12-02 19:40:19 -0800
commit43405a75bd0ba7ec2a0add751ccd0a179e3129de (patch)
treeb00a752cc9e13a029b82405d4f89c042aa892b90 /activerecord/lib/active_record/counter_cache.rb
parent57c60d36d365c8722947001c42b722902b086e0a (diff)
downloadrails-43405a75bd0ba7ec2a0add751ccd0a179e3129de.tar.gz
rails-43405a75bd0ba7ec2a0add751ccd0a179e3129de.tar.bz2
rails-43405a75bd0ba7ec2a0add751ccd0a179e3129de.zip
increment_counter and decrement_counter can accept and array of ids as an arg
Diffstat (limited to 'activerecord/lib/active_record/counter_cache.rb')
-rw-r--r--activerecord/lib/active_record/counter_cache.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/counter_cache.rb b/activerecord/lib/active_record/counter_cache.rb
index c53b7b3e78..4c5326ead6 100644
--- a/activerecord/lib/active_record/counter_cache.rb
+++ b/activerecord/lib/active_record/counter_cache.rb
@@ -88,7 +88,7 @@ module ActiveRecord
# ==== Parameters
#
# * +counter_name+ - The name of the field that should be incremented.
- # * +id+ - The id of the object that should be incremented.
+ # * +id+ - The id of the object that should be incremented or an Array of ids.
#
# ==== Examples
#
@@ -105,7 +105,7 @@ module ActiveRecord
# ==== Parameters
#
# * +counter_name+ - The name of the field that should be decremented.
- # * +id+ - The id of the object that should be decremented.
+ # * +id+ - The id of the object that should be decremented or an Array of ids.
#
# ==== Examples
#