From a49b38ac35eefe7f57802d4776049be3add54003 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 14 Apr 2014 21:00:29 -0400 Subject: [PATCH] TRIVIAL: Remove irrelevant comment :) --- app/models/topic.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/topic.rb b/app/models/topic.rb index 450e8fb2e67..d2dbbafe95a 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -318,7 +318,6 @@ class Topic < ActiveRecord::Base return [] unless title.present? return [] unless raw.present? - # For now, we only match on title. We'll probably add body later on, hence the API hook similar = Topic.select(sanitize_sql_array(["topics.*, similarity(topics.title, :title) + similarity(p.raw, :raw) AS similarity", title: title, raw: raw])) .visible .where(closed: false, archived: false)