Set the locale when rendering a generic error page

This commit is contained in:
Tom Hughes 2023-03-12 16:09:37 +00:00
parent e2d3aee2bd
commit 6e6d806560

View 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 }