From 79e5efc1178ce8164d13850e6aa61f96c648c560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20J=C3=A4ggi?= Date: Thu, 31 Oct 2024 15:02:54 +0100 Subject: [PATCH] Change settings add source to before initialize --- lib/hitobito_youth/wagon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hitobito_youth/wagon.rb b/lib/hitobito_youth/wagon.rb index dd22010..4224a65 100644 --- a/lib/hitobito_youth/wagon.rb +++ b/lib/hitobito_youth/wagon.rb @@ -104,7 +104,7 @@ class Wagon < Rails::Engine end # rubocop:enable Layout/LineLength - initializer "youth.add_settings" do |_app| + config.before_initialize do |_app| Settings.add_source!(File.join(paths["config"].existent, "settings.yml")) Settings.reload! end