Sha256: 749593ecbd71c664ea3d058ff8084d521a01ec662169a1d73e8bec4998516834

Contents?: true

Size: 570 Bytes

Versions: 14

Compression:

Stored size: 570 Bytes

Contents

module LogSanity
  module LogSubscriber
    class ActionMailer < Base

      def deliver(event)
        info do
          { 'at' => Time.now,
            'event' => 'mail_send',
            'from' => Array(event.payload[:from]),
            'to' => Array(event.payload[:to])
          }
        end
      end

      def receive(event)
        info do
          { 'at' => Time.now,
            'event' => 'mail_receive',
            'from' => Array(event.payload[:from]),
            'to' => Array(event.payload[:to])
          }
        end
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
log_sanity-2.3.0 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-2.2.0 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-2.1.2 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-2.1.1 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-2.1.0 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-2.0.0 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-1.3.2 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-1.3.1 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-1.3.0 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-1.2.0 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-1.1.1 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-1.1.0 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-1.0.0 lib/log_sanity/log_subscribers/action_mailer.rb
log_sanity-0.2.5 lib/log_sanity/log_subscribers/action_mailer.rb