about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2019-11-14 06:53:05 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-11-13 22:53:05 +0100
commitafb398b583b23c139c5a069c1281550bb69760e0 (patch)
tree65a683e0f062af4af2faf374d479d29369916058 /app
parent6c60ccee8af2c76d8ba8a725841e3543a0dee644 (diff)
Change to always returns html document in error pages (#12214)
Diffstat (limited to 'app')
-rw-r--r--app/controllers/application_controller.rb5
1 files changed, 1 insertions, 4 deletions
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