Sha256: 6ac8dc75797bd2d13828bbf725b7311b9c2a020ee28a915a5fff7c4d7164e9b6
Contents?: true
Size: 462 Bytes
Versions: 5
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true module GoodJob class JobsController < GoodJob::BaseController def index @filter = JobsFilter.new(params) end def show @executions = GoodJob::Execution.active_job_id(params[:id]) .order(Arel.sql("COALESCE(scheduled_at, created_at) DESC")) redirect_to root_path, alert: "Executions for Active Job #{params[:id]} not found" if @executions.empty? end end end
Version data entries
5 entries across 5 versions & 1 rubygems