diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-15 11:24:06 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-15 12:24:31 +0100 |
commit | 704daad76208f4581c8169e2cdca096ed804beb4 (patch) | |
tree | dfbca97c50f48d2f5ca2e650d845cd20b4dc3395 /actionmailer/lib/action_mailer/railties/subscriber.rb | |
parent | 6932f6751e224c8f18e686c6cde5b3885bfc71a8 (diff) | |
download | rails-704daad76208f4581c8169e2cdca096ed804beb4.tar.gz rails-704daad76208f4581c8169e2cdca096ed804beb4.tar.bz2 rails-704daad76208f4581c8169e2cdca096ed804beb4.zip |
Ensure we just send Ruby Stdlib objects in ActionMailer notifications.
Diffstat (limited to 'actionmailer/lib/action_mailer/railties/subscriber.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/railties/subscriber.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionmailer/lib/action_mailer/railties/subscriber.rb b/actionmailer/lib/action_mailer/railties/subscriber.rb index aafc155b09..af9c477237 100644 --- a/actionmailer/lib/action_mailer/railties/subscriber.rb +++ b/actionmailer/lib/action_mailer/railties/subscriber.rb @@ -2,14 +2,14 @@ module ActionMailer module Railties class Subscriber < Rails::Subscriber def deliver(event) - recipients = Array(event.payload[:mailer].recipients).join(', ') + recipients = Array(event.payload[:to]).join(', ') info("Sent mail to #{recipients} (%1.fms)" % event.duration) - debug("\n#{event.payload[:mail].encoded}") + debug("\n#{event.payload[:mail]}") end def receive(event) info("Received mail (%.1fms)" % event.duration) - debug("\n#{event.payload[:mail].encoded}") + debug("\n#{event.payload[:mail]}") end def logger |