reverted is_deleted change

This commit is contained in:
albert
2012-01-26 14:40:24 -05:00
parent ea16f2ce37
commit 8203beca83

View File

@@ -687,6 +687,10 @@ class Post < ActiveRecord::Base
relation = relation.where("posts.is_flagged = TRUE")
elsif q[:status] == "deleted"
relation = relation.where("posts.is_deleted = TRUE")
elsif q[:status] == "all" || q[:status] == "any"
# do nothing
else
relation = relation.where("posts.is_deleted <> TRUE")
end
if q[:source]