aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/active_job/queue_adapters/resque_adapter.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/active_job/queue_adapters/resque_adapter.rb b/lib/active_job/queue_adapters/resque_adapter.rb
index 9c223db15e..cddc4b5424 100644
--- a/lib/active_job/queue_adapters/resque_adapter.rb
+++ b/lib/active_job/queue_adapters/resque_adapter.rb
@@ -1,7 +1,11 @@
require 'resque'
require 'active_support/core_ext/enumerable'
require 'active_support/core_ext/array/access'
-require 'resque-scheduler'
+begin
+ require 'resque-scheduler'
+rescue LoadError
+ require 'resque_scheduler'
+end
module ActiveJob
module QueueAdapters