lib/rocketjob.rb in rocketjob-2.0.0 vs lib/rocketjob.rb in rocketjob-2.1.1
- old
+ new
@@ -1,10 +1,11 @@
# encoding: UTF-8
require 'semantic_logger'
require 'rocket_job/extensions/mongo'
require 'mongo_ha'
require 'mongo_mapper'
+require 'rocket_job/extensions/mongo_mapper'
require 'rocket_job/version'
# @formatter:off
module RocketJob
autoload :CLI, 'rocket_job/cli'
@@ -63,5 +64,8 @@
end
end
end
end
+
+# Add Active Job adapter for Rails
+require 'rocket_job/extensions/rocket_job_adapter' if defined?(ActiveJob)