Class: ResqueWeb::WorkersController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#set_subtabs, subtabs

Instance Method Details

#indexObject



5
6
# File 'app/controllers/resque_web/workers_controller.rb', line 5

def index
end

#showObject



8
9
10
11
12
13
14
# File 'app/controllers/resque_web/workers_controller.rb', line 8

def show
  if params[:id] && params[:id] != 'all'
    @workers = view_context.worker_hosts[params[:id]].map { |id| Resque::Worker.find(id) }
  else
    @workers = Resque.workers
  end
end