The locale selection was disabled during migration to rails 5.1

Back again...
This commit is contained in:
echarp 2019-02-06 09:34:39 +01:00
parent 4e96495967
commit 78cab372a4
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# The top level controller, where can be centralised almost everything
class ApplicationController < ActionController::Base
before_action :set_paper_trail_whodunnit, :discard
before_action :set_paper_trail_whodunnit, :set_locale, :discard
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery prepend: true, with: :exception