Skip to content

Commit

Permalink
Allow running Que on Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
texpert committed Oct 9, 2023
1 parent 9744019 commit fb421bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/que.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,9 @@ def pool

# Load Rails features as appropriate.
require_relative 'que/rails/railtie' if defined?(::Rails::Railtie)
require_relative 'que/active_job/extensions' if defined?(::ActiveJob)

if defined?(::ActiveJob)
unless ActiveJob::VERSION::MAJOR == 7 && ActiveJob::VERSION::MINOR >= 1
require_relative 'que/active_job/extensions'
end
end

0 comments on commit fb421bf

Please sign in to comment.