X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/899fc66a62b036adcfd59f5da80c7fc6f30cd3a8..bc883cb9269c12cd9ccad0707e498daa2863ae27:/app/controllers/api/users_controller.rb?ds=inline diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index d765b4904..d3387bd5f 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -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