Actions
Defect #38250
closedconfig/settings.yml not closed in Setting.load_available_settings
Defect #38250:
config/settings.yml not closed in Setting.load_available_settings
Resolution:
Fixed
Affected version:
Description
The file config/settings.yml is not closed after it is read in Setting.load_available_settings.
This can cause problems during development, for example when changing Git branches while the Rails server is running (error: unable to unlink old 'config/settings.yml').
The solution is to pass a block to File.open, as it will automatically close the file after the block is executed.
Actions