layout changes

This commit is contained in:
albert
2013-01-06 14:26:20 -05:00
parent 61220ab3f8
commit 575f138797
3 changed files with 6 additions and 5 deletions

View File

@@ -27,6 +27,10 @@ module PostSets
end
end
def has_explicit?
posts.any? {|x| x.rating == "e"}
end
def posts
if tag_array.size > 2 && !CurrentUser.is_privileged?
raise SearchError.new("Upgrade your account to search more than two tags at once")