2023-02-23 12:10:46 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-03-22 17:29:08 -04:00
|
|
|
module ::DiscourseDataExplorer
|
2023-02-23 12:10:46 -05:00
|
|
|
class Engine < ::Rails::Engine
|
2023-03-22 17:29:08 -04:00
|
|
|
engine_name PLUGIN_NAME
|
2023-02-23 12:10:46 -05:00
|
|
|
isolate_namespace DiscourseDataExplorer
|
2024-08-27 23:36:44 -04:00
|
|
|
config.autoload_paths << File.join(config.root, "lib")
|
|
|
|
scheduled_job_dir = "#{config.root}/app/jobs/scheduled"
|
|
|
|
config.to_prepare { Rails.autoloaders.main.eager_load_dir(scheduled_job_dir) }
|
2023-02-23 12:10:46 -05:00
|
|
|
end
|
|
|
|
end
|