From ed5f5388e342aca5630a19d37d64346c35c4e293 Mon Sep 17 00:00:00 2001 From: Aday BA Date: Thu, 25 Jan 2024 14:48:29 +0000 Subject: [PATCH] Added external lib folder to autoload to allow custom class to be loaded into OnDemand (#3307) --- apps/dashboard/config/application.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dashboard/config/application.rb b/apps/dashboard/config/application.rb index b7bab33f66..112e03cccf 100644 --- a/apps/dashboard/config/application.rb +++ b/apps/dashboard/config/application.rb @@ -43,6 +43,7 @@ class Application < Rails::Application # Ensuring OOD initializers run last so that user's cannot override what we # specify unless we allow the override as well in our own initializers. config.paths["config/initializers"] << ::Configuration.config_root.join("initializers").to_s + config.autoload_paths << ::Configuration.config_root.join("lib").to_s config.paths["app/views"].unshift ::Configuration.config_root.join("views").to_s end end