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:
parent
0cb812a50e
commit
22abbb862a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue