Allow searching for deleted pools

This commit is contained in:
Toks
2013-11-01 10:07:47 -04:00
parent 7b53999566
commit 2bc5605edc
3 changed files with 10 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ class PoolsController < ApplicationController
end
def index
@pools = Pool.undeleted.search(params[:search]).order("updated_at desc").paginate(params[:page], :limit => params[:limit], :search_count => params[:search])
@pools = Pool.search(params[:search]).order("updated_at desc").paginate(params[:page], :limit => params[:limit], :search_count => params[:search])
respond_with(@pools) do |format|
format.xml do
render :xml => @pools.to_xml(:root => "pools")