Skip to content

Commit

Permalink
Merge pull request #26 from bensie/master
Browse files Browse the repository at this point in the history
README: Rails attachments API method is `attachments` (plural)
  • Loading branch information
temochka committed May 12, 2013
2 parents b4fc1f6 + 6c50609 commit 9315c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -102,7 +102,7 @@ The legacy `:postmark_attachments` attribute is *no longer supported* on Rails 3
class TestMailer < ActionMailer::Base

def message_with_attachment
attachment['42.jpg'] = File.read("/path/to/file")
attachments['42.jpg'] = File.read("/path/to/file")
mail(
:subject => 'hello',
:to => 'sheldon@bigbangtheory.com',
Expand Down

0 comments on commit 9315c31

Please sign in to comment.