add resolved search for flags

This commit is contained in:
Toks
2013-05-25 21:32:24 -04:00
parent bb8fde1516
commit c60a5fcc31

View File

@@ -43,6 +43,12 @@ class PostFlag < ActiveRecord::Base
q = q.where("post_id = ?", params[:post_id].to_i)
end
if params[:is_resolved] == "true"
q = q.resolved
elsif params[is_resolved] == "false"
q = q.unresolved
end
q
end
end