]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Fix some Style/StringConcatenation warnings
[rails.git] / app / controllers / application_controller.rb
index 3f6abc470f1a3340b5037ece012e8f6dc67fcebd..8adea79a4fadc7ae2c55c0df110927b3fb491e6d 100644 (file)
@@ -216,7 +216,7 @@ class ApplicationController < ActionController::Base
   # asserts that the request method is the +method+ given as a parameter
   # 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)
+    ok = request.send(:"#{method.to_s.downcase}?")
     raise OSM::APIBadMethodError, method unless ok
   end