Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I18n deprecation warning #206

Closed
adrianpacala opened this issue Aug 14, 2014 · 1 comment
Closed

I18n deprecation warning #206

adrianpacala opened this issue Aug 14, 2014 · 1 comment
Assignees
Labels

Comments

@adrianpacala
Copy link

Using active_interaction 1.2.4 with rails 4.1.4 causes the following deprecation warning:

[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.

This is caused by explicitly setting the locale in active_interaction (commenting out this line removes the warning).

@tfausak tfausak added the bug label Aug 14, 2014
@tfausak tfausak self-assigned this Aug 14, 2014
@tfausak
Copy link
Collaborator

tfausak commented Aug 14, 2014

Thanks for reporting this! We've actually dealt with this issue before in #84. I thought we fixed it with cd169f0 and ca7844a, but maybe we didn't.

Following the advice of this Stack Overflow question, can you try adding this to your config/application.rb?

I18n.enforce_available_locales = true

tfausak added a commit that referenced this issue Aug 14, 2014
tfausak added a commit that referenced this issue Aug 15, 2014
Don't set the default locale
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants