1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

require both variant of resque-scheduler

This commit is contained in:
Abdelkader Boudih 2014-07-03 16:44:01 +00:00
parent c5c7497492
commit 392c482785

View file

@ -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