Sha256: 81fdafc0d82cfe545c613af9e5062ef2e14c460ac980680415888ab6b6669a7d

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

# frozen_string_literal: true
module GoodJob
  class ActiveJobsController < GoodJob::BaseController
    def show
      @executions = GoodJob::Execution.active_job_id(params[:id])
                                      .order(Arel.sql("COALESCE(scheduled_at, created_at) DESC"))
      raise ActiveRecord::RecordNotFound if @executions.empty?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
good_job-2.2.0 engine/app/controllers/good_job/active_jobs_controller.rb