Module: Card::Set::Type::Image::EmailHtmlFormat

Extended by:
AbstractFormat
Defined in:
tmpsets/set/mod019-carrierwave/type/image.rb

Instance Method Summary collapse

Instance Method Details

#attach_image(mail, path) ⇒ Object



162
163
164
165
# File 'tmpsets/set/mod019-carrierwave/type/image.rb', line 162

def attach_image mail, path
  mail.attachments.inline[path] = ::File.read path
  mail.attachments[path].url
end