From 3ee6e42016d0ad828cd00fcd97abf8bac3bbd62d Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 23 Jul 2013 10:01:40 -0400 Subject: [PATCH] FIX: Server side errors with Topic.similar_to --- app/controllers/topics_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rb index dc740ddceea..a6eccb61dd6 100644 --- a/app/controllers/topics_controller.rb +++ b/app/controllers/topics_controller.rb @@ -127,7 +127,7 @@ class TopicsController < ApplicationController # Only suggest similar topics if the site has a minimmum amount of topics present. if Topic.count > SiteSetting.minimum_topics_similar - topics = Topic.similar_to(title, raw, current_user) + topics = Topic.similar_to(title, raw, current_user).to_a end render_serialized(topics, BasicTopicSerializer)