From ae1d6e74215a10336a21b2d277049f4ed9adcf52 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 7 Apr 2017 15:52:08 +0800 Subject: [PATCH] Fix incorrect method usage. --- app/models/topic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/topic.rb b/app/models/topic.rb index 29d47aa8515..4f1367fa071 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -969,7 +969,7 @@ SQL topic_status_update.based_on_last_post = !based_on_last_post.blank? if status_type == TopicStatusUpdate.types[:publish_to_category] - topic_status_update.category = Category.find_by(category_id) + topic_status_update.category = Category.find_by(id: category_id) end if topic_status_update.based_on_last_post