This commit is contained in:
Toks
2013-10-09 14:11:38 -04:00
parent fed48da2df
commit 34716298b6
2 changed files with 13 additions and 1 deletions

View File

@@ -190,6 +190,12 @@ class PostQueryBuilder
end
end
if q[:pool] == "none"
relation = relation.where("posts.pool_string = ''")
elsif q[:pool] == "any"
relation = relation.where("posts.pool_string != ''")
end
if q[:subscriptions]
relation = add_tag_subscription_relation(q[:subscriptions], relation)
has_constraints!