Set the locale when rendering a generic error page
This commit is contained in:
parent
e2d3aee2bd
commit
6e6d806560
1 changed files with 2 additions and 0 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Reference in a new issue