1
0
Fork 0
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:
Zachary Scott 2013-05-12 22:27:40 -04:00
parent d8b8c0ef87
commit d790b50db4

View file

@ -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