Class: ActiveBatch::WorkUnitsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/active_batch/work_units_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject

DELETE /jobs/1



17
18
19
20
# File 'app/controllers/active_batch/work_units_controller.rb', line 17

def destroy
  @work_unit.destroy
  redirect_to work_units_url, notice: 'Job was successfully destroyed.'
end

#indexObject

GET /jobs



8
9
10
# File 'app/controllers/active_batch/work_units_controller.rb', line 8

def index
  @work_units = WorkUnit.all
end

#showObject

GET /jobs/1



13
14
# File 'app/controllers/active_batch/work_units_controller.rb', line 13

def show
end