Sha256: b8428d6bbe5d24d8a839f5a31352c47ea929032fe49eadc16302e1270aa4895f

Contents?: true

Size: 456 Bytes

Versions: 28

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true
module GoodJob
  class ExecutionsController < GoodJob::BaseController
    def index
      @filter = ExecutionsFilter.new(params)
    end

    def destroy
      deleted_count = GoodJob::Execution.where(id: params[:id]).delete_all
      message = deleted_count.positive? ? { notice: "Job execution deleted" } : { alert: "Job execution not deleted" }
      redirect_back fallback_location: root_path, **message
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
good_job-2.6.1 engine/app/controllers/good_job/executions_controller.rb
good_job-2.6.0 engine/app/controllers/good_job/executions_controller.rb
good_job-2.5.0 engine/app/controllers/good_job/executions_controller.rb
good_job-2.4.2 engine/app/controllers/good_job/executions_controller.rb
good_job-2.4.1 engine/app/controllers/good_job/executions_controller.rb
good_job-2.4.0 engine/app/controllers/good_job/executions_controller.rb
good_job-2.3.1 engine/app/controllers/good_job/executions_controller.rb
good_job-2.3.0 engine/app/controllers/good_job/executions_controller.rb