Class: ResqueWeb::WorkersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ResqueWeb::WorkersController
- Defined in:
- app/controllers/resque_web/workers_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
5 6 |
# File 'app/controllers/resque_web/workers_controller.rb', line 5 def index end |
#show ⇒ Object
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 |