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