Sha256: afc78f33c401b40eabde0cbfdeed3ddaa30761f08f2976bf343242d6f6f9a2c2

Contents?: true

Size: 649 Bytes

Versions: 109

Compression:

Stored size: 649 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

109 entries across 109 versions & 9 rubygems

Version Path
actionmailer-6.1.7.10 lib/action_mailer/rescuable.rb
actionmailer-6.1.7.9 lib/action_mailer/rescuable.rb
actionmailer-6.1.7.8 lib/action_mailer/rescuable.rb
actionmailer-6.1.7.7 lib/action_mailer/rescuable.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionmailer-6.1.6.1/lib/action_mailer/rescuable.rb
actionmailer-6.1.7.6 lib/action_mailer/rescuable.rb
actionmailer-6.1.7.5 lib/action_mailer/rescuable.rb
actionmailer-6.1.7.4 lib/action_mailer/rescuable.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionmailer-6.1.6.1/lib/action_mailer/rescuable.rb
actionmailer-6.1.7.3 lib/action_mailer/rescuable.rb
actionmailer-6.1.7.2 lib/action_mailer/rescuable.rb
actionmailer-6.1.7.1 lib/action_mailer/rescuable.rb
actionmailer-6.0.6.1 lib/action_mailer/rescuable.rb
actionmailer-6.1.7 lib/action_mailer/rescuable.rb
actionmailer-6.0.6 lib/action_mailer/rescuable.rb
actionmailer-6.1.6.1 lib/action_mailer/rescuable.rb
actionmailer-6.0.5.1 lib/action_mailer/rescuable.rb
actionmailer-5.2.8.1 lib/action_mailer/rescuable.rb
actionmailer-5.2.8 lib/action_mailer/rescuable.rb
actionmailer-6.0.5 lib/action_mailer/rescuable.rb