mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Document ActionMailer::Base#set_content_type
This commit is contained in:
parent
d8b8c0ef87
commit
d790b50db4
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue