X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/26855add3861ad496efdcae8598ffdf7d1116074..6b44a1976cf07ba50ba8aed8b34434e69a45e62d:/config/initializers/piwik.rb?ds=sidebyside diff --git a/config/initializers/piwik.rb b/config/initializers/piwik.rb index 1f054f7d1..1b9fa73c1 100644 --- a/config/initializers/piwik.rb +++ b/config/initializers/piwik.rb @@ -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