Sha256: b43754e8e7d46a0d8fd4cc3bdb41b4ddecc04d92549291c0a31d1bbf8304b334

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

module ActionMailer
  module Railties
    class Subscriber < Rails::Subscriber
      def deliver(event)
        recipients = Array(event.payload[:to]).join(', ')
        info("\nSent mail to #{recipients} (%1.fms)" % event.duration)
        debug(event.payload[:mail])
      end

      def receive(event)
        info("\nReceived mail (%.1fms)" % event.duration)
        debug(event.payload[:mail])
      end

      def logger
        ActionMailer::Base.logger
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
actionmailer-3.0.0.beta lib/action_mailer/railties/subscriber.rb