]> source.dussan.org Git - redmine.git/commitdiff
Don't call #head with a hash.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 1 Jun 2017 18:28:18 +0000 (18:28 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 1 Jun 2017 18:28:18 +0000 (18:28 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16588 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application_controller.rb

index f7bc95a7d781c524565dc9f8fe0060d9f0d86598..6f7ec717fbf424cc08df18fe3e1f9f913599a16f 100644 (file)
@@ -654,7 +654,7 @@ class ApplicationController < ActionController::Base
 
   # Renders a head API response
   def render_api_head(status)
-    head :status => status
+    head status
   end
 
   # Renders API response on validation failure