about summary refs log tree commit diff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-07-21 18:08:02 +0200
committerGitHub <noreply@github.com>2019-07-21 18:08:02 +0200
commitbd1545de5ee9655130e5357bb9cb6449520a6292 (patch)
treeaf0b640a9b337e291622585e2986e516170f88b7 /app/controllers/application_controller.rb
parentbd87e6667975bc3b5bfaf3e1cdff97e041ed4c98 (diff)
Change locale detection to run once per session (#8657)
Fix #6462
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 51e9764d4..5863fe168 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -138,11 +138,7 @@ class ApplicationController < ActionController::Base
   def respond_with_error(code)
     respond_to do |format|
       format.any  { head code }
-
-      format.html do
-        set_locale
-        render "errors/#{code}", layout: 'error', status: code
-      end
+      format.html { render "errors/#{code}", layout: 'error', status: code }
     end
   end