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 6, 2024
1 parent 96132ba commit 7f4dab4
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'), ::Rails.env)
Expand Down

0 comments on commit 7f4dab4

Please sign in to comment.