Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better class name

  • Loading branch information...
commit 5890ced113a63687b8ede0440ee3331449efe0af 1 parent 74fa0d3
@khustochka khustochka authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/i18n.textile
View
4 guides/source/i18n.textile
@@ -870,7 +870,7 @@ In other contexts you might want to change this behaviour, though. E.g. the defa
<ruby>
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
</ruby>
This would re-raise only the +MissingTranslationData+ exception, passing all other input to the default exception handler.
Please sign in to comment.
Something went wrong with that request. Please try again.