class RorVsWild::Plugin::ActionMailer
def self.setup
def self.setup return if @installed return unless defined?(::ActiveSupport::Notifications.subscribe) ActiveSupport::Notifications.subscribe("deliver.action_mailer", new) @installed = true end
def finish(name, id, payload)
def finish(name, id, payload) RorVsWild::Section.stop do |section| section.command = payload[:mailer] section.kind = "mail".freeze end end
def start(name, id, payload)
def start(name, id, payload) RorVsWild::Section.start end