Merge 12304:14009 from trunk.
This commit is contained in:
commit
c8ee135104
36 changed files with 174 additions and 130 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue