Sha256: dade2cb6f341231ebe7d6f36539b03728c1f26132fcc9f991113eccaec07e9bc

Contents?: true

Size: 358 Bytes

Versions: 8

Compression:

Stored size: 358 Bytes

Contents

class MissionControl::Jobs::DispatchesController < MissionControl::Jobs::ApplicationController
  include MissionControl::Jobs::JobScoped

  def create
    @job.dispatch
    redirect_to application_jobs_url(@application, :blocked), notice: "Dispatched job with id #{@job.job_id}"
  end

  private
  def jobs_relation
    ApplicationJob.jobs.blocked
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mission_control-jobs-0.4.0 app/controllers/mission_control/jobs/dispatches_controller.rb
mission_control-jobs-0.3.3 app/controllers/mission_control/jobs/dispatches_controller.rb
mission_control-jobs-0.3.2 app/controllers/mission_control/jobs/dispatches_controller.rb
mission_control-jobs-0.3.1 app/controllers/mission_control/jobs/dispatches_controller.rb
mission_control-jobs-0.3.0 app/controllers/mission_control/jobs/dispatches_controller.rb
mission_control-jobs-0.2.2 app/controllers/mission_control/jobs/dispatches_controller.rb
mission_control-jobs-0.2.1 app/controllers/mission_control/jobs/dispatches_controller.rb
mission_control-jobs-0.2.0 app/controllers/mission_control/jobs/dispatches_controller.rb