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

#showObject



5
6
7
8
9
10
11
# File 'app/controllers/resque_web/workers_controller.rb', line 5

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