Sha256: 403a879e1eefc814c22f050590c475a0444272ba53c58ef28d5b38b5226d4fdf
Contents?: true
Size: 557 Bytes
Versions: 2
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true require "rails/mailers_controller" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mail-notify-1.2.0 | lib/mail/notify/railtie.rb |
mail-notify-1.1.0 | lib/mail/notify/railtie.rb |