From a46214c4f9e7117796f2a5ed1414a83c2ca4c6bd Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Sat, 18 Mar 2006 23:06:25 +0000 Subject: Make custom headers work in subparts (closes #4034) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3956 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionmailer/lib/action_mailer/part.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actionmailer/lib/action_mailer') diff --git a/actionmailer/lib/action_mailer/part.rb b/actionmailer/lib/action_mailer/part.rb index 0036d04da0..7bdbf5345d 100644 --- a/actionmailer/lib/action_mailer/part.rb +++ b/actionmailer/lib/action_mailer/part.rb @@ -96,7 +96,9 @@ module ActionMailer part.set_content_type(content_type, nil, { "charset" => charset }) if content_type =~ /multipart/ end - + + @headers.each { |k,v| part[k] = v } + part end -- cgit v1.2.3