FIX: Server side errors with Topic.similar_to

This commit is contained in:
Robin Ward 2013-07-23 10:01:40 -04:00
parent 7c5e15966f
commit 3ee6e42016

View file

@ -127,7 +127,7 @@ class TopicsController < ApplicationController
# Only suggest similar topics if the site has a minimmum amount of topics present. # Only suggest similar topics if the site has a minimmum amount of topics present.
if Topic.count > SiteSetting.minimum_topics_similar 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 end
render_serialized(topics, BasicTopicSerializer) render_serialized(topics, BasicTopicSerializer)