]> git.openstreetmap.org Git - rails.git/commitdiff
back out the registration of the gpx mime type, as it didn't seem work
authorKai Krueger <kakrueger@gmail.com>
Sun, 14 Mar 2010 00:14:35 +0000 (00:14 +0000)
committerKai Krueger <kakrueger@gmail.com>
Sun, 14 Mar 2010 00:14:35 +0000 (00:14 +0000)
app/controllers/map_bugs_controller.rb
config/environment.rb

index c0fc97a5f63aaf50947db6aafceb684f58a9e070..41b07eb96c4a8321e0638578e70ff1d5e4ca1798 100644 (file)
@@ -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
 
index 1ad6aa202bab2a1bb4798ec3efb809cefe0fc97b..f13b2752b5e2c5fd8bb9bc42f3294739ca9a01ab 100644 (file)
@@ -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