0
0
Fork 0

Assign user locale on signup (#1982)

This commit is contained in:
saturday06 2017-04-17 17:29:08 +09:00 committed by Eugen
parent 64e1d51025
commit d87ee1167e
2 changed files with 7 additions and 1 deletions

View file

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