From: Kai Krueger Date: Sun, 14 Mar 2010 00:14:35 +0000 (+0000) Subject: back out the registration of the gpx mime type, as it didn't seem work X-Git-Tag: live~5072^2~227 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3344e6084697337ef789333410bead2589d26241?hp=458402813cfc14d9e1cbca890b238ce78ee72357 back out the registration of the gpx mime type, as it didn't seem work --- diff --git a/app/controllers/map_bugs_controller.rb b/app/controllers/map_bugs_controller.rb index c0fc97a5f..41b07eb96 100644 --- a/app/controllers/map_bugs_controller.rb +++ b/app/controllers/map_bugs_controller.rb @@ -52,7 +52,7 @@ class MapBugsController < ApplicationController format.js format.xml {render :template => 'map_bugs/get_bugs.xml'} format.json { render :json => @bugs.to_json(:methods => [:lat, :lon], :only => [:id, :status, :date_created], :include => { :map_bug_comment => { :only => [:commenter_name, :date_created, :comment]}}) } - format.gpx {render :template => 'map_bugs/get_bugs.gpx'} +# format.gpx {render :template => 'map_bugs/get_bugs.gpx'} end end @@ -146,7 +146,7 @@ class MapBugsController < ApplicationController format.js format.xml {render :template => 'map_bugs/get_bugs.xml'} format.json { render :json => @bugs.to_json(:methods => [:lat, :lon], :only => [:id, :status, :date_created], :include => { :map_bug_comment => { :only => [:commenter_name, :date_created, :comment]}}) } - format.gpx {render :template => 'map_bugs/get_bugs.gpx'} +# format.gpx {render :template => 'map_bugs/get_bugs.gpx'} end end diff --git a/config/environment.rb b/config/environment.rb index 1ad6aa202..f13b2752b 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -100,6 +100,4 @@ Rails::Initializer.run do |config| # Make Active Record use UTC-base instead of local time config.active_record.default_timezone = :utc - Mime::Type.register "text/xml", :gpx - end