Merge pull request #3753 from riking/patch-6

FIX: Fallbacks for missing interpolation arguments
This commit is contained in:
Robin Ward 2015-09-11 14:11:17 -04:00
commit c1d09be3cf

View File

@ -28,8 +28,10 @@ class NoFallbackLocaleList < FallbackLocaleList
end
end
if Rails.env.production?
I18n.fallbacks = FallbackLocaleList.new
else
if Rails.env.development?
I18n.fallbacks = NoFallbackLocaleList.new
else
I18n.fallbacks = FallbackLocaleList.new
I18n.config.missing_interpolation_argument_handler = proc { throw(:exception) }
end