diff options
author | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-30 01:29:41 +0400 |
---|---|---|
committer | Raphael Sofaer <raphael@joindiaspora.com> | 2011-07-30 01:30:20 +0400 |
commit | bea333842fbd9273f6544e50b71e98fa73c4303e (patch) | |
tree | 2630e7cf227345453a4f33d8d8297a695faebaec /lib | |
parent | b56838e5b11455ca765b2be62265d6d4b5ab6d7c (diff) |
Make sure that a MissingInterpolationArgument in the english locale is raised
Diffstat (limited to 'lib')
-rw-r--r-- | lib/i18n_interpolation_fallbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/i18n_interpolation_fallbacks.rb b/lib/i18n_interpolation_fallbacks.rb index 45c6dfe59..067601bcb 100644 --- a/lib/i18n_interpolation_fallbacks.rb +++ b/lib/i18n_interpolation_fallbacks.rb @@ -17,7 +17,7 @@ module I18n options.delete(:fallback) return super(locale, nil, options.merge(:default => default)) if default - raise(I18n::MissingInterpolationError.new(locale, key, options)) + raise(I18n::MissingInterpolationArgument.new(options, "key: #{key} in locale: #{locale}")) end end end |