From 3344e6084697337ef789333410bead2589d26241 Mon Sep 17 00:00:00 2001 From: Kai Krueger Date: Sun, 14 Mar 2010 00:14:35 +0000 Subject: [PATCH] back out the registration of the gpx mime type, as it didn't seem work --- app/controllers/map_bugs_controller.rb | 4 ++-- config/environment.rb | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) 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 -- 2.39.5