about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorsaturday06 <dyob@lunaport.net>2017-04-17 17:29:08 +0900
committerEugen <eugen@zeonfederated.com>2017-04-17 10:29:08 +0200
commitd87ee1167e0f11d94a20e70e9228a3398e202bc8 (patch)
treed40656f8b01346043bbeda74abcc957218194b06 /app/controllers
parent64e1d510259d784c1103d9ff2c738f5e2ba1a31d (diff)
Assign user locale on signup (#1982)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/auth/registrations_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb
index f8050afb5..dd30be32a 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