method
normalize_nonfile_hash
v3.0.0 -
Show latest stable
- Class:
ActionMailer::OldApi
normalize_nonfile_hash(params)protected
No documentation available.
# File actionmailer/lib/action_mailer/old_api.rb, line 117
def normalize_nonfile_hash(params)
content_disposition = "attachment;"
mime_type = params.delete(:mime_type)
if content_type = params.delete(:content_type)
content_type = "#{mime_type || content_type};"
end
params[:body] = params.delete(:data) if params[:data]
{ :content_type => content_type,
:content_disposition => content_disposition }.merge(params)
end