X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b7335940e21bfe4fc9ac688130687398e677cfae..231bdf66cdc8239c37e1536be4fb52ce275219e3:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index 6be106159..64af4ecc1 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -27,8 +27,7 @@ class Relation < ActiveRecord::Base def self.from_xml(xml, create=false) begin - p = XML::Parser.new - p.string = xml + p = XML::Parser.string(xml) doc = p.parse doc.find('//osm/relation').each do |pt|