]> git.openstreetmap.org Git - rails.git/commitdiff
Set the locale when rendering a generic error page
authorTom Hughes <tom@compton.nu>
Sun, 12 Mar 2023 16:09:37 +0000 (16:09 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 12 Mar 2023 16:10:14 +0000 (16:10 +0000)
app/controllers/errors_controller.rb

index caadd51213ed9cd1af4bd0224f87967a32fc2e31..ee1fcca6f8892ea346c1cacd3161eebc9c56983c 100644 (file)
@@ -3,6 +3,8 @@ class ErrorsController < ApplicationController
 
   skip_authorization_check
 
+  before_action :set_locale
+
   def forbidden
     respond_to do |format|
       format.html { render :status => :forbidden }