This commit is contained in:
Toks
2013-08-18 18:24:10 -04:00
parent dc180899f5
commit b32783c8ba
3 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class PoolElementsController < ApplicationController
end
def all_select
@pools = Pool.active.order("name").select("id, name").all
@pools = Pool.undeleted.where("is_active = true").order("name").select("id, name").all
end
private

View File

@@ -14,7 +14,7 @@ class PoolsController < ApplicationController
end
def index
@pools = Pool.active.search(params[:search]).order("updated_at desc").paginate(params[:page], :limit => params[:limit], :search_count => params[:search])
@pools = Pool.undeleted.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")

View File

@@ -18,7 +18,7 @@ class Pool < ActiveRecord::Base
attr_accessible :is_deleted, :as => [:janitor, :moderator, :admin]
module SearchMethods
def active
def undeleted
where("is_deleted = false")
end