]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/segment_controller.rb
move stuff around
[rails.git] / app / controllers / segment_controller.rb
index 950479ad7600f39e396fec92addd9a5613ba9bf8..76cb5cebb44e6fbea5e97c64135b92282b25b108 100644 (file)
@@ -85,7 +85,7 @@ class SegmentController < ApplicationController
     ids = params['segments'].split(',').collect {|s| s.to_i }
     if ids.length > 0
       segmentlist = Segment.find(ids)
     ids = params['segments'].split(',').collect {|s| s.to_i }
     if ids.length > 0
       segmentlist = Segment.find(ids)
-      doc = get_xml_doc
+      doc = OSM::API.get_xml_doc
       segmentlist.each do |segment|
         doc.root << segment.to_xml_node
       end 
       segmentlist.each do |segment|
         doc.root << segment.to_xml_node
       end