Class: GoodJob::BatchesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/good_job/batches_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
# File 'app/controllers/good_job/batches_controller.rb', line 5

def index
  @filter = BatchesFilter.new(params)
end

#retryObject



13
14
15
16
17
# File 'app/controllers/good_job/batches_controller.rb', line 13

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

#showObject



9
10
11
# File 'app/controllers/good_job/batches_controller.rb', line 9

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