Sha256: 6a6410cd6f8922fa5bc78795e41bb3f1ce373a3dab5e85f177762bf95d2f65b2
Contents?: true
Size: 618 Bytes
Versions: 48
Compression:
Stored size: 618 Bytes
Contents
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
48 entries across 48 versions & 4 rubygems