Class: ResqueWeb::JobsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ResqueWeb::JobsController
- Defined in:
- app/controllers/resque_web/jobs_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#destroy ⇒ Object
4 5 6 7 8 9 |
# File 'app/controllers/resque_web/jobs_controller.rb', line 4 def destroy args = JSON.parse(params[:args]) destroyed = Resque::Job.destroy(params[:queue], params[:job_class], *args) flash[:info] = "#{pluralize(destroyed, 'job')} deleted." redirect_to queue_path(params[:queue]) end |