Skip to content
Browse files

Replacing 'for' with 'each' in actionmailer guide

  • Loading branch information...
1 parent 0cb812a commit 22abbb862a49d685a9e6767c994b20ba051c2fea @guilleiguaran guilleiguaran committed May 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/action_mailer_basics.textile
View
2 railties/guides/source/action_mailer_basics.textile
@@ -419,7 +419,7 @@ class UserMailer < ActionMailer::Base
)
if email.has_attachments?
- for attachment in email.attachments
+ email.attachments.each do |attachment|
page.attachments.create({
:file => attachment,
:description => email.subject

0 comments on commit 22abbb8

Please sign in to comment.
Something went wrong with that request. Please try again.