Sha256: 0e33d125eed89bead7ee362b94f2699af30c6c8db558469009d4dc5630ed4afe

Contents?: true

Size: 420 Bytes

Versions: 11

Compression:

Stored size: 420 Bytes

Contents

# frozen_string_literal: true

module GoodJob
  class BatchesController < GoodJob::ApplicationController
    def index
      @filter = BatchesFilter.new(params)
    end

    def show
      @batch = GoodJob::BatchRecord.find(params[:id])
    end

    def retry
      @batch = GoodJob::Batch.find(params[:id])
      @batch.retry
      redirect_back(fallback_location: batches_path, notice: t(".notice"))
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
good_job-4.8.0 app/controllers/good_job/batches_controller.rb
good_job-4.7.0 app/controllers/good_job/batches_controller.rb
good_job-4.6.0 app/controllers/good_job/batches_controller.rb
good_job-4.5.1 app/controllers/good_job/batches_controller.rb
good_job-4.5.0 app/controllers/good_job/batches_controller.rb
good_job-4.4.2 app/controllers/good_job/batches_controller.rb
good_job-4.4.1 app/controllers/good_job/batches_controller.rb
good_job-4.4.0 app/controllers/good_job/batches_controller.rb
good_job-4.3.0 app/controllers/good_job/batches_controller.rb
good_job-4.2.1 app/controllers/good_job/batches_controller.rb
good_job-4.2.0 app/controllers/good_job/batches_controller.rb