X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2ada0591b8d348459dc31f4279e27b21a773c061..8aba3c4ec4b878eba0de4bfb9f2f7bea597dd607:/config/initializers/banners.rb diff --git a/config/initializers/banners.rb b/config/initializers/banners.rb index cda96e038..c7ff281f3 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