Sha256: bf3f23b1d3cd2027a3d0bcaf2f5a5e966f5aeb36a2d3e38826c114f261bc4781
Contents?: true
Size: 403 Bytes
Versions: 4
Compression:
Stored size: 403 Bytes
Contents
# frozen_string_literal: true unless Rails.env.production? module I18n class JustRaiseExceptionHandler < ExceptionHandler def call(exception, locale, key, options) raise exception.to_exception if exception.is_a?(MissingTranslationData) || exception.is_a?(MissingTranslation) super end end end I18n.exception_handler = I18n::JustRaiseExceptionHandler.new end
Version data entries
4 entries across 4 versions & 1 rubygems