Skip to content

Commit

Permalink
Fix loading adapters with const_defined?
Browse files Browse the repository at this point in the history
  • Loading branch information
dixpac committed Nov 16, 2024
1 parent 41f2b77 commit 1f3b958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_job/queue_adapters/delayed_job_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ActiveJob
module QueueAdapters
# Explicitly remove the implementation existing in older rails'.
remove_const(:DelayedJobAdapter) if defined?(:DelayedJobAdapter)
remove_const(:DelayedJobAdapter) if const_defined?(:DelayedJobAdapter)

# = Delayed Job adapter for Active Job
#
Expand Down

0 comments on commit 1f3b958

Please sign in to comment.