]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/banners.rb
Switch to 6.1 defaults as everything has been enabled for some time
[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