aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdelkader Boudih <terminale@gmail.com>2014-07-03 16:44:01 +0000
committerAbdelkader Boudih <terminale@gmail.com>2014-07-03 16:44:01 +0000
commit392c48278507ef5ac43dd450725ce0ffb6b4d4ce (patch)
treef1400da8423f982b22c67a4ee5d9aa7547d18e15
parentc5c74974926a378d3c4ae7afd0dac576dc4220ad (diff)
downloadrails-392c48278507ef5ac43dd450725ce0ffb6b4d4ce.tar.gz
rails-392c48278507ef5ac43dd450725ce0ffb6b4d4ce.tar.bz2
rails-392c48278507ef5ac43dd450725ce0ffb6b4d4ce.zip
require both variant of resque-scheduler
-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