aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/README.rdoc
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-19 04:51:08 -0700
committerJosé Valim <jose.valim@gmail.com>2011-05-19 04:51:08 -0700
commit5281c296e66b7a343ab2684e8bc7d9b1fbe41283 (patch)
tree19b25afbf911906a7704408b74331a0dc7757c98 /actionmailer/README.rdoc
parentb5fec0f2a02727cd532c2d5db4ce9afa75d86bbe (diff)
parente3eaeb490aa97055e1ecc497412ca18e4604c9ba (diff)
downloadrails-5281c296e66b7a343ab2684e8bc7d9b1fbe41283.tar.gz
rails-5281c296e66b7a343ab2684e8bc7d9b1fbe41283.tar.bz2
rails-5281c296e66b7a343ab2684e8bc7d9b1fbe41283.zip
Merge pull request #1136 from arunagw/actionmailer_readme
Actionmailer readme
Diffstat (limited to 'actionmailer/README.rdoc')
-rw-r--r--actionmailer/README.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/README.rdoc b/actionmailer/README.rdoc
index af9bf40f9e..2806531dfa 100644
--- a/actionmailer/README.rdoc
+++ b/actionmailer/README.rdoc
@@ -102,7 +102,7 @@ Example:
)
if email.has_attachments?
- for attachment in email.attachments
+ email.attachments.each do |attachment|
page.attachments.create({
:file => attachment, :description => email.subject
})