Skip to content

Commit

Permalink
Block reload config files in Railtie if they already uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
vovanmozg committed Mar 30, 2024
1 parent fb280e6 commit 81a4e89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/config/integrations/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'), Config.environment.nil? ? ::Rails.env : Config.environment.to_sym)
Expand Down

0 comments on commit 81a4e89

Please sign in to comment.