Class: MissionControl::Jobs::WorkersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- MissionControl::Jobs::WorkersController
- Defined in:
- app/controllers/mission_control/jobs/workers_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 |
# File 'app/controllers/mission_control/jobs/workers_controller.rb', line 4 def index @workers_page = MissionControl::Jobs::Page.new(workers_relation, page: params[:page].to_i) @workers_count = @workers_page.total_count end |
#show ⇒ Object
9 10 11 |
# File 'app/controllers/mission_control/jobs/workers_controller.rb', line 9 def show @worker = MissionControl::Jobs::Current.server.find_worker(params[:id]) end |