Class: ResqueWeb::QueuesController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#set_subtabs, subtabs

Instance Method Details

#clearObject



16
17
18
19
# File 'app/controllers/resque_web/queues_controller.rb', line 16

def clear
  Resque.redis.del("queue:#{params[:id]}")
  redirect_to queue_path(params[:id])
end

#destroyObject



11
12
13
14
# File 'app/controllers/resque_web/queues_controller.rb', line 11

def destroy
  Resque.remove_queue(params[:id])
  redirect_to queues_path
end

#indexObject



4
5
# File 'app/controllers/resque_web/queues_controller.rb', line 4

def index
end

#showObject



7
8
9
# File 'app/controllers/resque_web/queues_controller.rb', line 7

def show
  set_subtabs view_context.queue_names
end