Fix incorrect method usage.

This commit is contained in:
Guo Xiang Tan 2017-04-07 15:52:08 +08:00
parent f534f041a0
commit ae1d6e7421
1 changed files with 1 additions and 1 deletions

View File

@ -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