]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
Update to use libxml 1.0.0 gem.
[rails.git] / app / models / relation.rb
index c8516b58a3441c9f3b0ec38262d7628c8888d00f..d9dba303fd8a6bbca4450dfa0260b8e4d4e8d4d9 100644 (file)
@@ -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