This commit is contained in:
Toks
2014-07-06 12:00:08 -04:00
parent 95d7b3bce5
commit 772003a55a
8 changed files with 11 additions and 19 deletions

View File

@@ -29,7 +29,7 @@ class Note < ActiveRecord::Base
end
def post_tags_match(query)
joins(:post).where("posts.tag_index @@ to_tsquery('danbooru', E?)", query.to_escaped_for_tsquery_split)
PostQueryBuilder.new(query).build(self.joins(:post))
end
def for_creator(user_id)