Sha256: d62875b57d1e5390d4f0783791a83e634082a473c9d1b51156e1ea547edfa80e
Contents?: true
Size: 654 Bytes
Versions: 13
Compression:
Stored size: 654 Bytes
Contents
# frozen_string_literal: true module ActionMailer # :nodoc: # Provides +rescue_from+ for mailers. Wraps mailer action processing, # mail job processing, and mail delivery. module Rescuable extend ActiveSupport::Concern include ActiveSupport::Rescuable class_methods do def handle_exception(exception) # :nodoc: rescue_with_handler(exception) || raise(exception) end end def handle_exceptions # :nodoc: yield rescue => exception rescue_with_handler(exception) || raise end private def process(...) handle_exceptions do super end end end end
Version data entries
13 entries across 13 versions & 3 rubygems