Module: ControllerMixins::WorkUnits

Included in:
ClientLogin::WorkUnitsController, WorkUnitsController
Defined in:
lib/controller_mixins/work_units.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
7
8
9
10
11
# File 'lib/controller_mixins/work_units.rb', line 3

def index
  if params[:invoiced] != nil
    @work_units = WorkUnit.find_all_by_invoiced(params[:invoiced])
    @search = "Invoiced: " + params[:invoiced]
  else
    @work_units = WorkUnit.find_all_by_paid(params[:paid])
    @search = "Paid: " + params[:paid]
  end
end