1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Replacing 'for' with 'each' in actionmailer guide

This commit is contained in:
Guillermo Iguaran 2011-05-19 22:26:34 -07:00
parent 0cb812a50e
commit 22abbb862a

View file

@ -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