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.11.2 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.11.1 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.11.0 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.10.1 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.10.0 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.9.6 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.9.5 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.9.4 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.9.3 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.9.2 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.9.1 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.9.0 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.8.0 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.7.1 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.7.0 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.6.0 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.5.0 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.4.1 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.4.0 engine/app/controllers/good_job/active_jobs_controller.rb
good_job-1.3.6 engine/app/controllers/good_job/active_jobs_controller.rb