From ea8d69fbd62134bc8fa9ca86c6a12e4cf683ae0c Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 5 Apr 2013 17:44:56 +1100 Subject: [PATCH] fix my broken test --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index e80172d8f..9bc8eacb6 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -488,7 +488,7 @@ class User < ActiveRecord::Base end def update_topic_reply_count - topic_reply_count = + self.topic_reply_count = Topic .where(['id in ( SELECT topic_id FROM posts p