]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/banners.rb
Localisation updates from https://translatewiki.net.
[rails.git] / config / initializers / banners.rb
index cda96e038018e56263b3c836ea00850661534c3b..c7ff281f30d721f2c31263bbbdeb703e01417d44 100644 (file)
@@ -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