Class: ResqueWeb::JobsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/resque_web/jobs_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#set_subtabs, subtabs

Instance Method Details

#destroyObject



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