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