Sha256: 4854b1850aab6311143f9daceb8d8e657675b191635cf84902e648c9a110b4d8
Contents?: true
Size: 395 Bytes
Versions: 7
Compression:
Stored size: 395 Bytes
Contents
# frozen_string_literal: true module GoodJob class ExecutionsController < GoodJob::ApplicationController 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: jobs_path, **message end end end
Version data entries
7 entries across 7 versions & 1 rubygems