Class: ActiveBatch::WorkUnitsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ActiveBatch::WorkUnitsController
- Defined in:
- app/controllers/active_batch/work_units_controller.rb
Instance Method Summary collapse
-
#destroy ⇒ Object
DELETE /jobs/1.
-
#index ⇒ Object
GET /jobs.
-
#show ⇒ Object
GET /jobs/1.
Instance Method Details
#destroy ⇒ Object
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 |
#index ⇒ Object
GET /jobs
8 9 10 |
# File 'app/controllers/active_batch/work_units_controller.rb', line 8 def index @work_units = WorkUnit.all end |
#show ⇒ Object
GET /jobs/1
13 14 |
# File 'app/controllers/active_batch/work_units_controller.rb', line 13 def show end |