Sha256: 8c70b9ee7df50b7b96a5501ba84c8b8e1d167e31acbdcdcf70db13e663dd60b3

Contents?: true

Size: 784 Bytes

Versions: 1

Compression:

Stored size: 784 Bytes

Contents

# MailboxerMultiAttach

This project rocks and uses MIT-LICENSE.

## Install

Project is for Rails 3.2.2 at the moment!
Add to your gemfile and run the following

        rails g mailboxer_multi_attach:install
        bundle exec rake db:migrate

## Usage

On any `messageable` object you utilize `send_message_mult_attach`. The following works where the entity has the `messageable` reference on its model.

        attachments = [{ :file => File.open('spec/testfile.txt') }, { :file => File.open('spec/1.mp4') }]
        entity1.send_message_mult_attach(entity2, "Body", "Subject", true, attachments)

You can also not pass in attachments like the following.

        entity1.send_message_mult_attach(entity2, "Body", "Subject", true)

## TODO
  - reply_to method for conversations

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mailboxer_multi_attach-0.0.2 README.md