aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Schütz <schuetzm@gmx.net>2019-01-25 10:56:47 +0100
committerMarc Schütz <schuetzm@gmx.net>2019-01-25 10:57:20 +0100
commitd611a3d661c6323b5be1f9a9a8c51681bf04013c (patch)
tree2fab2c7c9546581c9e557a865feb0f6734631199
parent826e34be226cbb61c28867617e1e37e20beae18f (diff)
downloadrails-d611a3d661c6323b5be1f9a9a8c51681bf04013c.tar.gz
rails-d611a3d661c6323b5be1f9a9a8c51681bf04013c.tar.bz2
rails-d611a3d661c6323b5be1f9a9a8c51681bf04013c.zip
Describe how to silence the deprecation warning about empty I18n fallbacks
-rw-r--r--activesupport/lib/active_support/i18n_railtie.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/i18n_railtie.rb b/activesupport/lib/active_support/i18n_railtie.rb
index 584930e413..8faa93a3e4 100644
--- a/activesupport/lib/active_support/i18n_railtie.rb
+++ b/activesupport/lib/active_support/i18n_railtie.rb
@@ -97,7 +97,8 @@ module I18n
If you desire the default locale to be included in the defaults, please
explicitly configure it with `config.i18n.fallbacks.defaults =
[I18n.default_locale]` or `config.i18n.fallbacks = [I18n.default_locale,
- {...}]`
+ {...}]`. If you want to opt-in to the new behavior, use
+ `config.i18n.fallbacks.defaults = [nil, {...}]`.
MSG
args.unshift I18n.default_locale
end