Class: MissionControl::Jobs::WorkersController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



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

#showObject



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