Skip to content

Commit 6b1fff2

Browse files
committed
Fix goodjob reference
1 parent f162d3f commit 6b1fff2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/active_interaction/extras.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def run(opts = {})
122122
end
123123

124124
def run!(opts = {})
125-
execute(opts) { klass.run!(_1) }
125+
execute(opts) { klass.run!(_1) }
126126
end
127127

128128
def delay(**delay_opts)
@@ -171,7 +171,8 @@ def initialize(delay_opts: {}, **kw)
171171
end
172172

173173
def run(opts = {})
174-
around = GoodJob::Bulk.method(:enqueue)
174+
require 'good_job'
175+
around = ::GoodJob::Bulk.method(:enqueue)
175176
execute(opts, around:) { klass.delay(delay_opts).run(_1) }
176177
end
177178

0 commit comments

Comments
 (0)