]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/changeset.rb
Merge 12304:14009 from trunk.
[rails.git] / app / models / changeset.rb
index 31d927e9a6649094b7ff9825519bad8ccff26365..d420f537a2472d8fe0a0f0058dee62952dd8adcf 100644 (file)
@@ -53,8 +53,7 @@ class Changeset < 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
 
       cs = Changeset.new