X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c32a63058c9caee42311a6ce5c0f88e5c31816b4..c1d4f3cc7f051815cfd4ea372597a94f1621abfa:/lib/country.rb diff --git a/lib/country.rb b/lib/country.rb index ab88072ec..ca547a972 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(Rails.root.join("config", "countries.xml"))) + xml = REXML::Document.new(Rails.root.join("config/countries.xml").read) xml.elements.each("geonames/country") do |ele| code = ele.get_text("countryCode").to_s