]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/piwik.rb
Rubocop autofixes
[rails.git] / config / initializers / piwik.rb
index 2de98ce06f689a76166efee14ebfca2d5eca5631..1b9fa73c14e7f1d86d96959a5194aa86723fdef4 100644 (file)
@@ -1,5 +1,5 @@
 require "yaml"
 
 require "yaml"
 
-if File.exist?(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
   PIWIK = YAML.load_file(piwik_file)
 end