diff --git a/lib/logstasher/active_job/log_subscriber.rb b/lib/logstasher/active_job/log_subscriber.rb
index <HASH>..<HASH> 100644
--- a/lib/logstasher/active_job/log_subscriber.rb
+++ b/lib/logstasher/active_job/log_subscriber.rb
@@ -1,7 +1,8 @@
-if ActiveJob::VERSION::MAJOR >= 6 && ActiveJob::VERSION::MINOR >= 1
-  require 'active_job/log_subscriber'
-else
+# For Rails 6.0 or below, require the logging module which contains LogSubscriber
+if ActiveJob::VERSION::MAJOR < 6 || (ActiveJob::VERSION::MAJOR == 6 && ActiveJob::VERSION::MINOR == 0)
   require 'active_job/logging' 
+else
+  require 'active_job/log_subscriber'
 end
 
 module LogStasher
Fix potential issue for Rails 7 in require (#<I>)

The older condition wouldn't require the newer location for Rails 7 in the future. Caught by @petergoldstein