提交 43405a75 编写于 作者: M Matthew Robertson

increment_counter and decrement_counter can accept and array of ids as an arg

上级 57c60d36
......@@ -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
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册