Sha256: 4ddca2a8b61af75a716d93a0a7576e6cb0e837b2eac0b2bde5e9bde6568cb5d3
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 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.send(:prepend, Mail::Notify::MailersController) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mail-notify-0.2.0 | lib/mail/notify/railtie.rb |
mail-notify-0.1.0 | lib/mail/notify/railtie.rb |