Skip to content
This repository
Browse code

Better class name

  • Loading branch information...
commit 5890ced113a63687b8ede0440ee3331449efe0af 1 parent 74fa0d3
authored April 06, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  guides/source/i18n.textile
4  guides/source/i18n.textile
Source Rendered
@@ -870,7 +870,7 @@ In other contexts you might want to change this behaviour, though. E.g. the defa
870 870
 
871 871
 <ruby>
872 872
 module I18n
873  
-  class JustRaiseHandler < ExceptionHandler
  873
+  class JustRaiseExceptionHandler < ExceptionHandler
874 874
     def call(exception, locale, key, options)
875 875
       if exception.is_a?(MissingTranslation)
876 876
         raise exception.to_exception
@@ -881,7 +881,7 @@ module I18n
881 881
   end
882 882
 end
883 883
 
884  
-I18n.exception_handler = I18n::JustRaiseHandler.new
  884
+I18n.exception_handler = I18n::JustRaiseExceptionHandler.new
885 885
 </ruby>
886 886
 
887 887
 This would re-raise only the +MissingTranslationData+ exception, passing all other input to the default exception handler.

0 notes on commit 5890ced

Please sign in to comment.
Something went wrong with that request. Please try again.