From da4f9ce34d6365e36a63720d3370514277039834 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 1 Jun 2017 18:28:18 +0000 Subject: [PATCH] Don't call #head with a hash. git-svn-id: http://svn.redmine.org/redmine/trunk@16588 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f7bc95a7d..6f7ec717f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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