From 78cab372a4ae093ff77abc1294962aa6f80f52c4 Mon Sep 17 00:00:00 2001 From: echarp Date: Wed, 6 Feb 2019 09:34:39 +0100 Subject: [PATCH] The locale selection was disabled during migration to rails 5.1 Back again... --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3fb06961..e49ff72d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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