about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorTomonori Murakami <crosslife777@gmail.com>2017-05-23 00:58:41 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-22 17:58:41 +0200
commit7966d3a872bb002d98e506e7ab34c0016b8ab8fe (patch)
treeb70e40e43f77321b3c80070553e05e5eb3a45fb9 /app/controllers
parent422e4d897bf77bcf2f30e04f7b537608e4674002 (diff)
Fix locale bug when change it on preferences (#3223) (#3232)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/settings/preferences_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/settings/preferences_controller.rb b/app/controllers/settings/preferences_controller.rb
index 28757d1bc..3dc3013c3 100644
--- a/app/controllers/settings/preferences_controller.rb
+++ b/app/controllers/settings/preferences_controller.rb
@@ -11,6 +11,7 @@ class Settings::PreferencesController < ApplicationController
     user_settings.update(user_settings_params.to_h)
 
     if current_user.update(user_params)
+      I18n.locale = current_user.locale
       redirect_to settings_preferences_path, notice: I18n.t('generic.changes_saved_msg')
     else
       render :show