lib/rocketjob.rb in rocketjob-5.3.2 vs lib/rocketjob.rb in rocketjob-5.3.3
- old
+ new
@@ -11,10 +11,13 @@
# Apply patches to implement `with_collection`
require "rocket_job/extensions/mongoid/clients/options"
require "rocket_job/extensions/mongoid/contextual/mongo"
require "rocket_job/extensions/mongoid/factory"
+# Apply patches for deprecated Symbol type
+require "rocket_job/extensions/mongoid/remove_warnings"
+
# @formatter:off
module RocketJob
autoload :ActiveWorker, "rocket_job/active_worker"
autoload :Batch, "rocket_job/batch"
autoload :CLI, "rocket_job/cli"
@@ -69,10 +72,12 @@
autoload :HousekeepingJob, "rocket_job/jobs/housekeeping_job"
autoload :PerformanceJob, "rocket_job/jobs/performance_job"
autoload :SimpleJob, "rocket_job/jobs/simple_job"
autoload :UploadFileJob, "rocket_job/jobs/upload_file_job"
module ReEncrypt
- autoload :RelationalJob, "rocket_job/jobs/re_encrypt/relational_job"
+ if defined?(ActiveRecord) && defined?(SyncAttr)
+ autoload :RelationalJob, "rocket_job/jobs/re_encrypt/relational_job"
+ end
end
end
module Sliced
autoload :CompressedSlice, "rocket_job/sliced/compressed_slice"