Sha256: 74f168f1221e2ba4ed827a7c320af7e032cdf636d0e1a36865aadbde81ba99d9
Contents?: true
Size: 577 Bytes
Versions: 53
Compression:
Stored size: 577 Bytes
Contents
module RorVsWild module Plugin class ActionMailer def self.setup return if @installed return unless defined?(::ActiveSupport::Notifications.subscribe) ActiveSupport::Notifications.subscribe("deliver.action_mailer", new) @installed = true end def start(name, id, payload) RorVsWild::Section.start end def finish(name, id, payload) RorVsWild::Section.stop do |section| section.command = payload[:mailer] section.kind = "mail".freeze end end end end end
Version data entries
53 entries across 53 versions & 1 rubygems