lib/mail/notify/railtie.rb in mail-notify-1.0 vs lib/mail/notify/railtie.rb in mail-notify-1.0.1

- old
+ new

@@ -1,14 +1,14 @@ # frozen_string_literal: true module Mail module Notify class Railtie < Rails::Railtie - initializer 'mail-notify.add_delivery_method', before: 'action_mailer.set_configs' do + 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 + initializer "mail-notify.action_controller" do ActiveSupport.on_load(:action_controller, run_once: true) do Rails::MailersController.prepend(Mail::Notify::MailersController) end end end