From 75dd46878fe6c9f2651d7e50d2abbb8837000018 Mon Sep 17 00:00:00 2001 From: hidekuni KAJITA Date: Tue, 14 Nov 2023 23:32:42 +0900 Subject: [PATCH] add require active_job/arguments (#1150) GoodJob::Batch.new in rails7.1 was causing an error. ``` > GoodJob::Batch.new /usr/local/bundle/gems/good_job-3.21.0/app/models/good_job/batch_record.rb:71:in `load': uninitialized constant ActiveJob::Arguments ( NameError) ``` --- app/models/good_job/batch_record.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/good_job/batch_record.rb b/app/models/good_job/batch_record.rb index a76ba5343..1f1ee79ce 100644 --- a/app/models/good_job/batch_record.rb +++ b/app/models/good_job/batch_record.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require 'active_job/arguments' + module GoodJob class BatchRecord < BaseRecord include AdvisoryLockable