From d790b50db4b0e605a915b4a4af5f81acae7b6094 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Sun, 12 May 2013 22:27:40 -0400 Subject: Document ActionMailer::Base#set_content_type --- actionmailer/lib/action_mailer/base.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'actionmailer') diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index d2e01cfd4c..d68182c0ff 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -720,6 +720,15 @@ module ActionMailer protected + # Used by #mail to set the content type of the message. + # + # It will use the given +user_content_type+, or multipart if the mail + # message has any attachments. If the attachments are inline, the content + # type will be "multipart/related", otherwise "multipart/mixed". + # + # If there is no content type passed in via headers, and there are no + # attachments, or the message is multipart, then the default content type is + # used. def set_content_type(m, user_content_type, class_default) params = m.content_type_parameters || {} case -- cgit v1.2.3