fixes #1332; partial fix for #1378

This commit is contained in:
Toks
2013-04-20 10:40:58 -04:00
parent ab793b6fe9
commit 0143401ac3
3 changed files with 38 additions and 0 deletions

View File

@@ -42,6 +42,12 @@ class Pool < ActiveRecord::Base
q = q.where("creator_id = ?", params[:creator_id].to_i)
end
if params[:is_active] == "true"
q = q.where("is_active = true")
elsif params[:is_active] == "false"
q = q.where("is_active = false")
end
if params[:sort] == "name"
q = q.order("name")
else