Class: Lazier::Exceptions::TranslationExceptionHandler
- Inherits:
-
I18n::ExceptionHandler
- Object
- I18n::ExceptionHandler
- Lazier::Exceptions::TranslationExceptionHandler
- Defined in:
- lib/lazier/exceptions.rb
Overview
This is the handler for the core I18n gem.
Instance Method Summary collapse
-
#call(exception, locale, key, options) ⇒ Object
Implements the ExceptionHandler interface for I18n.
Instance Method Details
#call(exception, locale, key, options) ⇒ Object
Implements the ExceptionHandler interface for I18n.
21 22 23 |
# File 'lib/lazier/exceptions.rb', line 21 def call(exception, locale, key, ) exception.is_a?(::I18n::MissingTranslation) ? raise(exception.to_exception) : super end |