Assign user locale on signup (#1982)
This commit is contained in:
parent
64e1d51025
commit
d87ee1167e
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue