lib/mandrill_dm/message.rb
def images
      inline_attachments = mail.attachments.select(&:inline?)
      inline_attachments.collect do |attachment|
        {
          name: attachment.cid,
          type: attachment.mime_type,
          content: Base64.encode64(attachment.body.decoded)
        }
      end
    end
def images
      inline_attachments = mail.attachments.select(&:inline?)
      inline_attachments.collect do |attachment|
        {
          name: attachment.cid,
          type: attachment.mime_type,
          content: Base64.encode64(attachment.body.decoded)
        }
      end
    end
def images inline_attachments = mail . attachments . select ( :inline? ) inline_attachments . collect do | attachment | { name : attachment . cid , type : attachment . mime_type , content : Base64 . encode64 ( attachment . body . decoded ) } end end
Mandrill uses a different hash for inlined image attachments
Mandrill uses a different hash for inlined image attachments