]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/banners.rb
Rename i18n keys track->trace
[rails.git] / config / initializers / banners.rb
index 5409f45313d8e5dd5807fcc1a9a5983739d354c4..8eda290c57d2e1d7c5d6fe9cabc21df2155d9d21 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.join("config", "banners.yml")).deep_symbolize_keys
+rescue StandardError
+  BANNERS = {}.freeze
+end