diff options
author | saturday06 <dyob@lunaport.net> | 2017-04-17 17:29:08 +0900 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-17 10:29:08 +0200 |
commit | d87ee1167e0f11d94a20e70e9228a3398e202bc8 (patch) | |
tree | d40656f8b01346043bbeda74abcc957218194b06 /app | |
parent | 64e1d510259d784c1103d9ff2c738f5e2ba1a31d (diff) |
Assign user locale on signup (#1982)
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/auth/registrations_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb index f8050afb5c0..dd30be32a40 100644 --- a/app/controllers/auth/registrations_controller.rb +++ b/app/controllers/auth/registrations_controller.rb @@ -10,6 +10,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController def build_resource(hash = nil) super(hash) + resource.locale = I18n.locale resource.build_account if resource.account.nil? end |