]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_segment_controller.rb
Seperating message receiving off into 'inbox' function.
[rails.git] / app / controllers / old_segment_controller.rb
index 1971e5dcadf72a745a4ecd1a76f16a40a02c0323..1f64987ed6402f9647ad01bf7f14984cf775741b 100644 (file)
@@ -1,7 +1,7 @@
 class OldSegmentController < ApplicationController
 
   def history
-    response.headers["Content-Type"] = 'application/xml'
+    response.headers["Content-Type"] = 'text/xml'
     segment = Segment.find(params[:id])
 
     unless segment
@@ -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