提交 c1763975 编写于 作者: S Sachin87

some modifications in action_mailer/base.rb

上级 787cac15
......@@ -409,7 +409,7 @@ def receive(raw_mail)
# and passing a Mail::Message will do nothing except tell the logger you sent the email.
def deliver_mail(mail) #:nodoc:
ActiveSupport::Notifications.instrument("deliver.action_mailer") do |payload|
self.set_payload_for_mail(payload, mail)
set_payload_for_mail(payload, mail)
yield # Let Mail do the delivery actions
end
end
......@@ -612,7 +612,8 @@ def mail(headers={}, &block)
parts_order = headers[:parts_order]
# Call all the procs (if any)
default_values = self.class.default.merge(self.class.default) do |k,v|
class_default = self.class.default
default_values = class_default.merge(class_default) do |k,v|
v.respond_to?(:call) ? v.bind(self).call : v
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册