jobs: fix no method error in /jobs.

Broken by the upgrade to good_job 3.0.
This commit is contained in:
evazion
2022-07-05 00:54:38 -05:00
parent 9000fa63bc
commit ba36e48bff
2 changed files with 7 additions and 1 deletions

View File

@@ -5,6 +5,8 @@
#
# @see https://github.com/bensheldon/good_job/blob/main/lib/good_job/active_job_job.rb
class BackgroundJob < GoodJob::ActiveJobJob
delegate :executions_count, to: :job
concerning :SearchMethods do
class_methods do
def default_order
@@ -58,5 +60,9 @@ class BackgroundJob < GoodJob::ActiveJobJob
end
end
end
def pretty_name
job.job_class.titleize.delete_suffix(" Job")
end
end
end