diff options
author | xyctka@gmail.com <xyctka@gmail.com> | 2012-04-06 10:04:26 +0100 |
---|---|---|
committer | xyctka@gmail.com <xyctka@gmail.com> | 2012-04-06 10:04:26 +0100 |
commit | 5890ced113a63687b8ede0440ee3331449efe0af (patch) | |
tree | 8fe98b4efb22ef489538c7954f4cf521053aa69a /guides/source/i18n.textile | |
parent | 74fa0d3db0c364f91d8a9a8ab0741d5787531890 (diff) | |
download | rails-5890ced113a63687b8ede0440ee3331449efe0af.tar.gz rails-5890ced113a63687b8ede0440ee3331449efe0af.tar.bz2 rails-5890ced113a63687b8ede0440ee3331449efe0af.zip |
Better class name
Diffstat (limited to 'guides/source/i18n.textile')
-rw-r--r-- | guides/source/i18n.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/i18n.textile b/guides/source/i18n.textile index 89d67e1f92..6179694c40 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 <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. |