mirror of
https://github.com/discourse/discourse-rewind.git
synced 2025-07-08 06:32:46 +00:00
14 lines
413 B
Ruby
14 lines
413 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ::DiscourseRewind
|
|
class Engine < ::Rails::Engine
|
|
engine_name PLUGIN_NAME
|
|
isolate_namespace DiscourseRewind
|
|
config.autoload_paths << File.join(config.root, "lib")
|
|
scheduled_job_dir = "#{config.root}/app/jobs/scheduled"
|
|
config.to_prepare do
|
|
Rails.autoloaders.main.eager_load_dir(scheduled_job_dir) if Dir.exist?(scheduled_job_dir)
|
|
end
|
|
end
|
|
end
|