instance method
attachment
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
attachment(params, &block)
Add an attachment to a multipart message. This is simply a part with the content-disposition set to “attachment”.
Parameters
-
paramsreq -
blockblock
Source
# File actionmailer/lib/action_mailer/part_container.rb, line 34
def attachment(params, &block)
params = { :content_type => params } if String === params
params = { :disposition => "attachment",
:transfer_encoding => "base64" }.merge(params)
part(params, &block)
end
Defined in actionmailer/lib/action_mailer/part_container.rb line 34
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::PartContainer