Sha256: f9a7a04be2acb3e23a332a65d5a2035e17dfbd3ea90d370b7fc05a95be2db681

Contents?: true

Size: 313 Bytes

Versions: 10

Compression:

Stored size: 313 Bytes

Contents

module MissionControl::Jobs::QueueScoped
  extend ActiveSupport::Concern

  included do
    before_action :set_queue
  end

  private
    def set_queue
      @queue = ActiveJob.queues[params[:queue_id]] or raise MissionControl::Jobs::Errors::ResourceNotFound, "Queue '#{params[:queue_id]}' not found"
    end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mission_control-jobs-0.6.0 app/controllers/concerns/mission_control/jobs/queue_scoped.rb
mission_control-jobs-0.5.0 app/controllers/concerns/mission_control/jobs/queue_scoped.rb
mission_control-jobs-0.4.0 app/controllers/concerns/mission_control/jobs/queue_scoped.rb
mission_control-jobs-0.3.3 app/controllers/concerns/mission_control/jobs/queue_scoped.rb
mission_control-jobs-0.3.2 app/controllers/concerns/mission_control/jobs/queue_scoped.rb
mission_control-jobs-0.3.1 app/controllers/concerns/mission_control/jobs/queue_scoped.rb
mission_control-jobs-0.3.0 app/controllers/concerns/mission_control/jobs/queue_scoped.rb
mission_control-jobs-0.2.2 app/controllers/concerns/mission_control/jobs/queue_scoped.rb
mission_control-jobs-0.2.1 app/controllers/concerns/mission_control/jobs/queue_scoped.rb
mission_control-jobs-0.2.0 app/controllers/concerns/mission_control/jobs/queue_scoped.rb