diff --git a/guides/source/i18n.textile b/guides/source/i18n.textile index 89d67e1f9221bd9d66a7c8255815c627a7f144df..6179694c4029350ae0a6711bc07907cc4cd9a16e 100644 --- a/guides/source/i18n.textile +++ b/guides/source/i18n.textile @@ -870,7 +870,7 @@ In other contexts you might want to change this behaviour, though. E.g. the defa module I18n - class JustRaiseHandler < ExceptionHandler + class JustRaiseExceptionHandler < ExceptionHandler def call(exception, locale, key, options) if exception.is_a?(MissingTranslation) raise exception.to_exception @@ -881,7 +881,7 @@ module I18n end end -I18n.exception_handler = I18n::JustRaiseHandler.new +I18n.exception_handler = I18n::JustRaiseExceptionHandler.new This would re-raise only the +MissingTranslationData+ exception, passing all other input to the default exception handler.