Class: MissionControl::Jobs::QueuesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- MissionControl::Jobs::QueuesController
- Defined in:
- app/controllers/mission_control/jobs/queues_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 |
# File 'app/controllers/mission_control/jobs/queues_controller.rb', line 4 def index @queues = ActiveJob.queues.sort_by(&:name) end |
#show ⇒ Object
8 9 10 |
# File 'app/controllers/mission_control/jobs/queues_controller.rb', line 8 def show @jobs_page = MissionControl::Jobs::Page.new(@queue.jobs, page: params[:page].to_i) end |