Skip to content

Commit

Permalink
add require active_job/arguments (#1150)
Browse files Browse the repository at this point in the history
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)
```
  • Loading branch information
hidenba authored Nov 14, 2023
1 parent e2f866b commit 75dd468
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/good_job/batch_record.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require 'active_job/arguments'

module GoodJob
class BatchRecord < BaseRecord
include AdvisoryLockable
Expand Down

0 comments on commit 75dd468

Please sign in to comment.