X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9e3dc420f334c936c6d4287a0898cebc2177a852..44217775f0f8556c662aa9b39aeed80c97c7f8ed:/config/initializers/banners.rb?ds=sidebyside diff --git a/config/initializers/banners.rb b/config/initializers/banners.rb index 5409f4531..8eda290c5 100644 --- a/config/initializers/banners.rb +++ b/config/initializers/banners.rb @@ -1 +1,5 @@ -BANNERS = YAML.load_file("#{Rails.root}/config/banners.yml").deep_symbolize_keys rescue {} +begin + BANNERS = YAML.load_file(Rails.root.join("config", "banners.yml")).deep_symbolize_keys +rescue StandardError + BANNERS = {}.freeze +end