From e3eaeb490aa97055e1ecc497412ca18e4604c9ba Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Thu, 19 May 2011 09:17:49 +0530 Subject: Example Usage updated for actionpack and actionmailer. --- actionmailer/README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailer/README.rdoc') 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 }) -- cgit v1.2.3