Sha256: 1b33ec859748d701b7faf414b1df97a5af07753079506d9989d8a00298ecb1b3

Contents?: true

Size: 271 Bytes

Versions: 22

Compression:

Stored size: 271 Bytes

Contents

module GoodJob
  class ActiveJobsController < GoodJob::BaseController
    def show
      @jobs = GoodJob::Job.where("serialized_params ->> 'job_id' = ?", params[:id])
                          .order(Arel.sql("COALESCE(scheduled_at, created_at) DESC"))
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
good_job-1.3.5 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.3.4 engine/app/controllers/good_job/active_jobs_controller.rb