mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unnecessary comma.
This commit is contained in:
parent
54e522a388
commit
acab767c9d
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ module ActiveRecord
|
|||
# Post.update_counters [10, 15], :comment_count => 1
|
||||
# # Executes the following SQL:
|
||||
# # UPDATE posts
|
||||
# # SET comment_count = COALESCE(comment_count, 0) + 1,
|
||||
# # SET comment_count = COALESCE(comment_count, 0) + 1
|
||||
# # WHERE id IN (10, 15)
|
||||
def update_counters(id, counters)
|
||||
updates = counters.map do |counter_name, value|
|
||||
|
|
Loading…
Reference in a new issue