From d87ee1167e0f11d94a20e70e9228a3398e202bc8 Mon Sep 17 00:00:00 2001 From: saturday06 Date: Mon, 17 Apr 2017 17:29:08 +0900 Subject: Assign user locale on signup (#1982) --- app/controllers/auth/registrations_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app') 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 -- cgit