fix for raw_tag_match

This commit is contained in:
albert
2013-03-06 01:31:45 -05:00
parent e8a1d3382d
commit 93ac6601aa
2 changed files with 8 additions and 7 deletions

View File

@@ -938,6 +938,7 @@ class Post < ActiveRecord::Base
end
def raw_tag_match(tag)
tag = tag.gsub("(", '\\\\\\\\(')
where("posts.tag_index @@ to_tsquery('danbooru', E?)", tag)
end