Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replacing 'for' with 'each' in actionmailer guide

  • Loading branch information...
commit 22abbb862a49d685a9e6767c994b20ba051c2fea 1 parent 0cb812a
@guilleiguaran guilleiguaran authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.