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:
parent
c5c7497492
commit
392c482785
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
||||||
require 'resque'
|
require 'resque'
|
||||||
require 'active_support/core_ext/enumerable'
|
require 'active_support/core_ext/enumerable'
|
||||||
require 'active_support/core_ext/array/access'
|
require 'active_support/core_ext/array/access'
|
||||||
require 'resque-scheduler'
|
begin
|
||||||
|
require 'resque-scheduler'
|
||||||
|
rescue LoadError
|
||||||
|
require 'resque_scheduler'
|
||||||
|
end
|
||||||
|
|
||||||
module ActiveJob
|
module ActiveJob
|
||||||
module QueueAdapters
|
module QueueAdapters
|
||||||
|
|
Loading…
Reference in a new issue