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

Thread safe fallbacks #542

Merged
merged 1 commit into from
Nov 10, 2020
Merged

Thread safe fallbacks #542

merged 1 commit into from
Nov 10, 2020

Conversation

jonian
Copy link
Contributor

@jonian jonian commented Nov 8, 2020

This makes I18n.fallbacks thread safe. Useful in multi-tenant applications where each tenant has different fallbacks preferences.

@radar
Copy link
Collaborator

radar commented Nov 10, 2020

I understand this change, but in case people come back and wonder why, I found this good explainer on SO: https://stackoverflow.com/a/47414040/15245.

@radar radar merged commit 4709391 into ruby-i18n:master Nov 10, 2020
@radar
Copy link
Collaborator

radar commented Nov 10, 2020

Thank you @jonian!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants