fix bug with topic response count not getting updated
This commit is contained in:
@@ -87,8 +87,9 @@ class ForumPost < ActiveRecord::Base
|
|||||||
|
|
||||||
def update_topic_updated_at
|
def update_topic_updated_at
|
||||||
if topic
|
if topic
|
||||||
topic.update_column(:updater_id, CurrentUser.id)
|
topic.updater_id = CurrentUser.id
|
||||||
topic.touch
|
topic.response_count = topic.response_count + 1
|
||||||
|
topic.save
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user