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