提交 802b08da 编写于 作者: J José Valim

Mailer should give self as payload because it contains all the information...

Mailer should give self as payload because it contains all the information needed (as the template rendered and the mailer name).
上级 7045c4c2
......@@ -499,7 +499,7 @@ def deliver!(mail = @mail)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册