X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f6695c9079f4eeeecaa796c879868f797f97cd55..2a44ff581f4c547a3637ea52567a3398b1d8bfe0:/config/initializers/banners.rb diff --git a/config/initializers/banners.rb b/config/initializers/banners.rb index cda96e038..8eda290c5 100644 --- a/config/initializers/banners.rb +++ b/config/initializers/banners.rb @@ -1,5 +1,5 @@ begin - BANNERS = YAML.load_file("#{Rails.root}/config/banners.yml").deep_symbolize_keys -rescue + BANNERS = YAML.load_file(Rails.root.join("config", "banners.yml")).deep_symbolize_keys +rescue StandardError BANNERS = {}.freeze end