Sha256: 03b78914f2138be21ed191590974143a06015ddf385c692f8bc4e454eb1d31bb
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 Bytes
Contents
class MissionControl::Jobs::QueuesController < MissionControl::Jobs::ApplicationController before_action :set_queue, only: :show def index @queues = filtered_queues.sort_by(&:name) end def show @jobs_page = MissionControl::Jobs::Page.new(@queue.jobs, page: params[:page].to_i) end private def set_queue @queue = ApplicationJob.queues[params[:id]] end def filtered_queues if prefix = ApplicationJob.queue_name_prefix ApplicationJob.queues.select { |queue| queue.name.start_with?(prefix) } else ApplicationJob.queues end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mission_control-jobs-0.1.1 | app/controllers/mission_control/jobs/queues_controller.rb |
mission_control-jobs-0.1.0 | app/controllers/mission_control/jobs/queues_controller.rb |