Class: Lazier::Exceptions::TranslationExceptionHandler

Inherits:
I18n::ExceptionHandler
  • Object
show all
Defined in:
lib/lazier/exceptions.rb

Overview

This is the handler for the core I18n gem.

Instance Method Summary (collapse)

Instance Method Details

- (Object) call(exception, locale, key, options)

:nodoc:



16
17
18
# File 'lib/lazier/exceptions.rb', line 16

def call(exception, locale, key, options)
  exception.is_a?(::I18n::MissingTranslation) ? raise(exception.to_exception) : super
end