class I18n::ExceptionHandler

Public Instance Methods

# File lib/i18n/exceptions.rb, line 7
def call(exception, _locale, _key, _options)
  if exception.is_a?(MissingTranslation)
    exception.message
  else
    raise exception
  end
end