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
1 changed files with 5 additions and 3 deletions

View File

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