mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Mailer should give self as payload because it contains all the information needed (as the template rendered and the mailer name).
This commit is contained in:
@@ -499,7 +499,7 @@ module ActionMailer #:nodoc:
|
||||
logger.debug "\n#{mail.encoded}"
|
||||
end
|
||||
|
||||
ActiveSupport::Notifications.instrument("action_mailer.deliver", :mail => mail) do
|
||||
ActiveSupport::Notifications.instrument("action_mailer.deliver", :mail => self) do
|
||||
begin
|
||||
self.delivery_method.perform_delivery(mail) if perform_deliveries
|
||||
rescue Exception => e # Net::SMTP errors or sendmail pipe errors
|
||||
|
||||
Reference in New Issue
Block a user