diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-04-20 07:19:24 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-04-20 07:19:24 +0300 |
commit | 1de135bc0408a871e3bfa8b0ba5aa81a7936bd01 (patch) | |
tree | 433d3abbe19a48c5d67371ee8bc847fbcd3bf87e /app/controllers/application_controller.rb | |
parent | 302e855f52b5d914e64bf6fbcc7e6544904c4e77 (diff) |
Fix Rubocop complains plus some small refactor
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5a3bd4040cc..0af05992cce 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -269,6 +269,7 @@ class ApplicationController < ActionController::Base def set_locale requested_locale = current_user&.preferred_language || request.env['HTTP_ACCEPT_LANGUAGE'] || I18n.default_locale locale = FastGettext.set_locale(requested_locale) + I18n.locale = locale end end |