]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/banners.rb
Install config gem for settings management
[rails.git] / config / initializers / banners.rb
index cda96e038018e56263b3c836ea00850661534c3b..8eda290c57d2e1d7c5d6fe9cabc21df2155d9d21 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