Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

I18n and cache_classes = true problem #230

Merged
1 commit merged into from Apr 30, 2011

Conversation

Projects
None yet
2 participants
Contributor

francocatena commented Feb 2, 2011

Some validation messages where cached when the Rails configuration has cache_classes = true. This cause problems in production when you have more than 1 translation, AuthLogic always use one because the :message => I18n.t('something') gets cached when the class does.

I add a lambda call in the messages to force the evaluation of the translation for every failed validation.

Thank you for this gem, is great!

Regards.

Franco Catena.

@ghost ghost pushed a commit that referenced this pull request Apr 30, 2011

@binarylogic binarylogic Merge pull request #230 from francocatena/master.
I18n and cache_classes = true problem
4170a96

@ghost ghost merged commit 4170a96 into binarylogic:master Apr 30, 2011

LarsV commented Jul 27, 2011

commit ac32c48 removed this fix.
is there a reason for removing this fix ?

Greets,
Lars

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment