X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2005709c5a9097f303f3bf8ce9321dcb60e552b3..07c1cd6b983d5138c1a217a716248b9a1010b9e3:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index c8516b58a..d9dba303f 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -15,8 +15,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 relation = Relation.new