Sha256: 6d34bc7b1edee81fc94bca5015a8e204f91738f7e279ffa7d539ef2eff08f670

Contents?: true

Size: 521 Bytes

Versions: 5

Compression:

Stored size: 521 Bytes

Contents

# frozen_string_literal: true

module Mail
  module Notify
    class Railtie < Rails::Railtie
      initializer "mail-notify.add_delivery_method", before: "action_mailer.set_configs" do
        ActionMailer::Base.add_delivery_method(:notify, Mail::Notify::DeliveryMethod)
      end

      initializer "mail-notify.action_controller" do
        ActiveSupport.on_load(:action_controller, run_once: true) do
          Rails::MailersController.prepend(Mail::Notify::MailersController)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mail-notify-1.0.5 lib/mail/notify/railtie.rb
mail-notify-1.0.4 lib/mail/notify/railtie.rb
mail-notify-1.0.3 lib/mail/notify/railtie.rb
mail-notify-1.0.2 lib/mail/notify/railtie.rb
mail-notify-1.0.1 lib/mail/notify/railtie.rb