diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2011-04-24 17:37:57 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-26 15:10:58 +0200 |
commit | a5b0f7064c0b74f4e007d8536afb8976d10fd49d (patch) | |
tree | 866119b12384844c720865bc982664f5c53c03f9 /actionpack/lib | |
parent | dd44626c7f2015c61d83a1be1265e664e87419f6 (diff) | |
download | rails-a5b0f7064c0b74f4e007d8536afb8976d10fd49d.tar.gz rails-a5b0f7064c0b74f4e007d8536afb8976d10fd49d.tar.bz2 rails-a5b0f7064c0b74f4e007d8536afb8976d10fd49d.zip |
bump the i18n gem to 0.6.0beta1 and update docs for the i18n exception handler [#6739 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/translation_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/translation_helper.rb b/actionpack/lib/action_view/helpers/translation_helper.rb index 59e6ce878f..26ebae6546 100644 --- a/actionpack/lib/action_view/helpers/translation_helper.rb +++ b/actionpack/lib/action_view/helpers/translation_helper.rb @@ -5,7 +5,7 @@ module I18n class ExceptionHandler include Module.new { def call(exception, locale, key, options) - exception.is_a?(MissingTranslationData) ? super.html_safe : super + exception.is_a?(MissingTranslation) ? super.html_safe : super end } end @@ -17,8 +17,8 @@ module ActionView module TranslationHelper # Delegates to I18n#translate but also performs three additional functions. # - # First, it'll pass the :rescue_format => :html option to I18n so that any caught - # MissingTranslationData exceptions will be turned into inline spans that + # First, it'll pass the :rescue_format => :html option to I18n so that any + # thrown MissingTranslation messages will be turned into inline spans that # # * have a "translation-missing" class set, # * contain the missing key as a title attribute and |