Skip to content
Browse files

increment_counter and decrement_counter can accept and array of ids a…

…s an arg
  • Loading branch information...
1 parent 57c60d3 commit 43405a75bd0ba7ec2a0add751ccd0a179e3129de @matthewrobertson matthewrobertson committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/counter_cache.rb
View
4 activerecord/lib/active_record/counter_cache.rb
@@ -88,7 +88,7 @@ def update_counters(id, counters)
# ==== 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 @@ def increment_counter(counter_name, id)
# ==== 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
#

0 comments on commit 43405a7

Please sign in to comment.
Something went wrong with that request. Please try again.