X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/899fc66a62b036adcfd59f5da80c7fc6f30cd3a8..cbea796ef412840af9a3ec2fd26bf08657fc4cd3:/app/controllers/api/users_controller.rb 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