fix bug with topic response count not getting updated

This commit is contained in:
albert
2013-02-21 14:07:43 -05:00
parent 94683cc82e
commit 08a1ff2613

View File

@@ -87,8 +87,9 @@ class ForumPost < ActiveRecord::Base
def update_topic_updated_at
if topic
topic.update_column(:updater_id, CurrentUser.id)
topic.touch
topic.updater_id = CurrentUser.id
topic.response_count = topic.response_count + 1
topic.save
end
end