]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Use send_data for GPX traces intead of monkey patching send_file
[rails.git] / app / controllers / application_controller.rb
index 68fc4338ee7a90d66b28d280faeee3be9bd90208..0988fcdf8bf64aab93ce4759fe767c3b518c691a 100644 (file)
@@ -346,7 +346,7 @@ class ApplicationController < ActionController::Base
   # or raises a suitable error. +method+ should be a symbol, e.g: :put or :get.
   def assert_method(method)
     ok = request.send((method.to_s.downcase + "?").to_sym)
-    raise OSM::APIBadMethodError.new(method) unless ok
+    raise OSM::APIBadMethodError, method unless ok
   end
 
   ##