Fix comment searches specifying both post_tags_match and is_deleted

fixes #2450
This commit is contained in:
Toks
2015-07-23 19:55:24 -04:00
parent ec31163be7
commit 4cc8f94970

View File

@@ -33,11 +33,11 @@ class Comment < ActiveRecord::Base
end
def deleted
where("is_deleted = true")
where("comments.is_deleted = true")
end
def undeleted
where("is_deleted = false")
where("comments.is_deleted = false")
end
def post_tags_match(query)