]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/banners.rb
Removed unused translations from Traces namespace
[rails.git] / config / initializers / banners.rb
index 5409f45313d8e5dd5807fcc1a9a5983739d354c4..c7ff281f30d721f2c31263bbbdeb703e01417d44 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