X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/721dd9c27d299455b9159457a095716f797389f1..c8ee1351049ef1bb4d7b50d071b2a96154266d1d:/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|