X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/dbd88d893f3c3fce9cafd666b94396988646d81f..4440730c9b1014d81688655f4c3fca92b5a3225c:/lib/country.rb diff --git a/lib/country.rb b/lib/country.rb index 3af7e0a21..ab88072ec 100644 --- a/lib/country.rb +++ b/lib/country.rb @@ -19,7 +19,7 @@ class Country def self.load_countries countries = {} - xml = REXML::Document.new(File.read("config/countries.xml")) + xml = REXML::Document.new(File.read(Rails.root.join("config", "countries.xml"))) xml.elements.each("geonames/country") do |ele| code = ele.get_text("countryCode").to_s