From afb398b583b23c139c5a069c1281550bb69760e0 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Thu, 14 Nov 2019 06:53:05 +0900 Subject: Change to always returns html document in error pages (#12214) --- app/controllers/application_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index bd3d13774..e19d5b142 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -136,9 +136,6 @@ class ApplicationController < ActionController::Base end def respond_with_error(code) - respond_to do |format| - format.any { head code } - format.html { render "errors/#{code}", layout: 'error', status: code } - end + render "errors/#{code}", layout: 'error', status: code end end -- cgit