X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/82843524366aaca76cdb58b6f7ecb25e0af769fb..467990a45bbc9ca64c275b42e27a8b15ab9b236b:/app/models/trace.rb?ds=sidebyside diff --git a/app/models/trace.rb b/app/models/trace.rb index ba255e85d..2d4e9ef8a 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -72,6 +72,10 @@ class Trace < ActiveRecord::Base "/home/osm/gpx/#{id}.gpx" end + def mime_type + return `file -bi #{trace_name}`.chomp + end + def to_xml_node el1 = XML::Node.new 'gpx_file' el1['id'] = self.id.to_s