Sha256: 7b8f3d8ef724346ebe9bfbdd332a57a81c92db4b7f2a0c0a3f3ca2ae9c2cf839

Contents?: true

Size: 915 Bytes

Versions: 40

Compression:

Stored size: 915 Bytes

Contents

# frozen_string_literal: true

module ActionMailer
  module Callbacks
    extend ActiveSupport::Concern

    included do
      include ActiveSupport::Callbacks
      define_callbacks :deliver, skip_after_callbacks_if_terminated: true
    end

    module ClassMethods
      # Defines a callback that will get called right before the
      # message is sent to the delivery method.
      def before_deliver(*filters, &blk)
        set_callback(:deliver, :before, *filters, &blk)
      end

      # Defines a callback that will get called right after the
      # message's delivery method is finished.
      def after_deliver(*filters, &blk)
        set_callback(:deliver, :after, *filters, &blk)
      end

      # Defines a callback that will get called around the message's deliver method.
      def around_deliver(*filters, &blk)
        set_callback(:deliver, :around, *filters, &blk)
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 5 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/actionmailer-7.1.3.4/lib/action_mailer/callbacks.rb
actionmailer-8.0.1 lib/action_mailer/callbacks.rb
actionmailer-8.0.0.1 lib/action_mailer/callbacks.rb
actionmailer-7.2.2.1 lib/action_mailer/callbacks.rb
actionmailer-7.1.5.1 lib/action_mailer/callbacks.rb
actionmailer-8.0.0 lib/action_mailer/callbacks.rb
actionmailer-7.2.2 lib/action_mailer/callbacks.rb
actionmailer-7.1.5 lib/action_mailer/callbacks.rb
actionmailer-8.0.0.rc2 lib/action_mailer/callbacks.rb
actionmailer-7.2.1.2 lib/action_mailer/callbacks.rb
actionmailer-7.1.4.2 lib/action_mailer/callbacks.rb
actionmailer-8.0.0.rc1 lib/action_mailer/callbacks.rb
actionmailer-7.2.1.1 lib/action_mailer/callbacks.rb
actionmailer-7.1.4.1 lib/action_mailer/callbacks.rb
actionmailer-8.0.0.beta1 lib/action_mailer/callbacks.rb
omg-actionmailer-8.0.0.alpha9 lib/action_mailer/callbacks.rb
omg-actionmailer-8.0.0.alpha8 lib/action_mailer/callbacks.rb
omg-actionmailer-8.0.0.alpha7 lib/action_mailer/callbacks.rb
omg-actionmailer-8.0.0.alpha4 lib/action_mailer/callbacks.rb
omg-actionmailer-8.0.0.alpha3 lib/action_mailer/callbacks.rb