Skip to content

Commit

Permalink
fix constant setting
Browse files Browse the repository at this point in the history
  • Loading branch information
markburns committed Jul 3, 2024
1 parent fdff717 commit 7c45158
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/interactify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ def with(receiver, sidekiq_opts = {})
base.include Interactify::Core
base.include Interactify::Async::Jobable

job_klass = base.interactor_job(opts: sidekiq_opts, klass_suffix:)
async_klass = base::Async.const_get("Async#{klass_suffix}")
base.interactor_job(opts: sidekiq_opts, klass_suffix:)
job_klass = base.const_get :"Job#{klass_suffix}"
async_klass = base.const_get :"Async#{klass_suffix}"
receiver.const_set("Job", job_klass)
receiver.const_set("Async", async_klass)
end
end

receiver.const_set("Job", job_klass)
receiver.const_set("Async", async_klass)

mod
end
end
Expand Down

0 comments on commit 7c45158

Please sign in to comment.