Class: Jobs::FailedController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Jobs::FailedController
- Defined in:
- app/controllers/panoptic/jobs/failed_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'app/controllers/panoptic/jobs/failed_controller.rb', line 17 def destroy @job = Panoptic::FailedJob.find(params[:id]) if @job.destroy redirect_back fallback_location: failed_jobs_path, notice: "Job was successfully deleted." else redirect_back fallback_location: failed_jobs_path, alert: @job.errors..to_sentence end end |