This commit is contained in:
albert
2013-02-28 22:15:24 -08:00
parent 639ed80655
commit 0f4d7709b6
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class Comment < ActiveRecord::Base
end
def post_tags_match(query)
joins(:post).where("posts.tag_index @@ to_tsquery('danbooru', ?)", query)
joins(:post).where("posts.tag_index @@ to_tsquery('danbooru', E?)", query)
end
def for_creator(user_id)