Class: I18n::ExceptionHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb

Instance Method Summary collapse

Instance Method Details

#call(exception, _locale, _key, _options) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 7

def call(exception, _locale, _key, _options)
  if exception.is_a?(MissingTranslation)
    exception.message
  else
    raise exception
  end
end