aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2011-12-26 21:44:50 +0200
committerUģis Ozols <ugis.ozolss@gmail.com>2011-12-26 21:44:50 +0200
commitacab767c9d042031320b1ed7a7e2faa653ab1bb9 (patch)
treeff108d4ae3a3e148fe7ccec168c87e84ec13b446 /activerecord
parent54e522a38827b7b78968237a762334f94c20f7d7 (diff)
downloadrails-acab767c9d042031320b1ed7a7e2faa653ab1bb9.tar.gz
rails-acab767c9d042031320b1ed7a7e2faa653ab1bb9.tar.bz2
rails-acab767c9d042031320b1ed7a7e2faa653ab1bb9.zip
Remove unnecessary comma.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/counter_cache.rb2
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 3c7defedac..031918712a 100644
--- a/activerecord/lib/active_record/counter_cache.rb
+++ b/activerecord/lib/active_record/counter_cache.rb
@@ -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|