]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_segment_controller.rb
gpx import now fully works
[rails.git] / app / controllers / old_segment_controller.rb
index 1971e5dcadf72a745a4ecd1a76f16a40a02c0323..a35a622f975d846575c63e80012652d8d287e849 100644 (file)
@@ -9,7 +9,7 @@ class OldSegmentController < ApplicationController
       return
     end
 
-    doc = get_xml_doc
+    doc = OSM::API.new.get_xml_doc
 
     segment.old_segments.each do |old_segment|
       doc.root << old_segment.to_xml_node
@@ -17,9 +17,4 @@ class OldSegmentController < ApplicationController
 
     render :text => doc.to_s
   end
-
-
-
-
-
 end