app/controllers/status_controller.rb
# this is called by the contracts_index function
this is called by the contracts_index function
this is called by the contracts_index function
def init_contract_filters
	  statusable = Category.statusable
	  if statusable.length == 0
	    @conditions << "(true = false)"
	  else
	    @conditions << "(category_id in (#{Category.statusable.collect{|c|c.id}.join(',')}))"
    end
	end
def init_contract_filters statusable = Category . statusable if statusable . length == 0 @conditions << "(true = false)" else @conditions << "(category_id in (#{Category.statusable.collect{|c|c.id}.join(',')}))" end end
this is called by the contracts_index function
this is called by the contracts_index function