]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/users_controller.rb
Merge remote-tracking branch 'upstream/pull/2207'
[rails.git] / app / controllers / api / users_controller.rb
index d765b4904e43774dfd879241954dca1366cf12fd..d3387bd5ffaaa1f48a0e32dff1b32d25ae3eb639 100644 (file)
@@ -37,11 +37,8 @@ module Api
     end
 
     def gpx_files
-      doc = OSM::API.new.get_xml_doc
-      current_user.traces.reload.each do |trace|
-        doc.root << trace.to_xml_node
-      end
-      render :xml => doc.to_s
+      @traces = current_user.traces.reload
+      render :content_type => "application/xml"
     end
 
     private