ryanb/letter_opener — pull request #36 by davidcornu (2012-05-10 23:45:55+00:00)
Title: Attachment Support (#26)

Write attachments to an `attachments` directory alongside `plain.html` and `rich.html`

__Changes__

- Modified `delivery_method.rb` to use the `text_part` and `html_part` methods provided by mail to avoid rendering attachments as the plain version
- Modified `message.rb` to write out the attachments and added an `@attachments` method to simplify the template
- Added links to the attachments in `message.html.erb` and changed styling accordingly
- Modified `delivery_method_spec.rb` to test added functionality