Fix for error message translation (issue 332) #349

Merged
merged 2 commits into from Apr 4, 2013

2 participants

@hybernaut

Defer the call to I18n.t for 'error_messages.email_invalid' because the I18n.locale may change between class initialization time and run time. This is definitely true in my app which handles users from multiple locales simultaneously, changing the locale for each request.

Update: OK this now includes a proper test.

@binarylogic binarylogic merged commit 9a04740 into binarylogic:master Apr 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment