Browse Source

Fix locale bug when change it on preferences (#3223) (#3232)

master
Tomonori Murakami 7 years ago
committed by Eugen Rochko
parent
commit
7966d3a872
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/settings/preferences_controller.rb

+ 1
- 0
app/controllers/settings/preferences_controller.rb View File

@ -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

Loading…
Cancel
Save