]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Added report strings for Changesets and Notes + minor controller changes
[rails.git] / app / controllers / application_controller.rb
index 98eecd6007aabb251d90f114a830ff1924b23fab..f3b77f8108acade06c00f70a367a3f6f606cd2f1 100644 (file)
@@ -337,7 +337,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)
-    fail OSM::APIBadMethodError.new(method) unless ok
+    raise OSM::APIBadMethodError.new(method) unless ok
   end
 
   ##