instance method attachment

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available 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

params req
block block
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close