Skip to content

Commit

Permalink
Preload AJ adapter so we can always find S::AJ::Wrapper base class
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jan 8, 2025
1 parent 510928f commit 9d9da2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sidekiq/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def to_hash
# end
# end
initializer "sidekiq.active_job_integration" do
ActiveSupport.on_load(:active_job) do
require "active_job/queue_adapters/sidekiq_adapter"
require "active_job/queue_adapters/sidekiq_adapter"

ActiveSupport.on_load(:active_job) do
include ::Sidekiq::Job::Options unless respond_to?(:sidekiq_options)
end
end
Expand Down

0 comments on commit 9d9da2f

Please sign in to comment.