]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/piwik.rb
Fix Style/SafeNavigation rubocop warnings
[rails.git] / config / initializers / piwik.rb
index 1f054f7d1ed370a27ef81e5131b3a03302057af9..1b9fa73c14e7f1d86d96959a5194aa86723fdef4 100644 (file)
@@ -1,5 +1,5 @@
 require "yaml"
 
-if File.exists?(piwik_file = File.expand_path("../../piwik.yml", __FILE__))
+if File.exist?(piwik_file = File.expand_path("../piwik.yml", __dir__))
   PIWIK = YAML.load_file(piwik_file)
 end