better fix for #1253

This commit is contained in:
Toks
2013-06-20 19:05:08 -04:00
parent 05eaa6f38b
commit 317dee767d
2 changed files with 2 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ class Tag < ActiveRecord::Base
module ParseMethods
def normalize(query)
query.to_s.downcase.strip
query.to_s.strip
end
def scan_query(query)

View File

@@ -44,7 +44,7 @@ module PostSetPresenters
end
def related_tags_for_single
tag = Tag.find_by_name(post_set.tag_string)
tag = Tag.find_by_name(post_set.tag_string.downcase)
if tag
tag.related_tag_array.map(&:first)