]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/banners.rb
Merge remote-tracking branch 'openstreetmap/pull/788'
[rails.git] / config / initializers / banners.rb
index 5409f45313d8e5dd5807fcc1a9a5983739d354c4..cda96e038018e56263b3c836ea00850661534c3b 100644 (file)
@@ -1 +1,5 @@
-BANNERS = YAML.load_file("#{Rails.root}/config/banners.yml").deep_symbolize_keys rescue {}
+begin
+  BANNERS = YAML.load_file("#{Rails.root}/config/banners.yml").deep_symbolize_keys
+rescue
+  BANNERS = {}.freeze
+end