diff --git a/lib/config/integrations/rails/railtie.rb b/lib/config/integrations/rails/railtie.rb index 460fa5f3..a758e060 100644 --- a/lib/config/integrations/rails/railtie.rb +++ b/lib/config/integrations/rails/railtie.rb @@ -7,6 +7,8 @@ def preload initializer = ::Rails.root.join('config', 'initializers', 'config.rb') require initializer if File.exist?(initializer) + return if Object.const_defined?(Config.const_name) + # Parse the settings before any of the initializers Config.load_and_set_settings( Config.setting_files(::Rails.root.join('config'), ::Rails.env)