Sha256: ba5b06ea9b8ed4eed93290c37d413ab2a7d4fd8540f84984005286a02c233f47

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

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

        config.action_mailer.preview_interceptors = [:mail_notify_preview_interceptor]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mail-notify-2.0.0 lib/mail/notify/engine.rb