diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-19 22:26:34 -0700 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-19 22:26:34 -0700 |
commit | 22abbb862a49d685a9e6767c994b20ba051c2fea (patch) | |
tree | b057450d7769efb147eb2f6904ebfc68a4777033 /railties | |
parent | 0cb812a50ebf5eaf0653efca721704dbb60ffc7d (diff) | |
download | rails-22abbb862a49d685a9e6767c994b20ba051c2fea.tar.gz rails-22abbb862a49d685a9e6767c994b20ba051c2fea.tar.bz2 rails-22abbb862a49d685a9e6767c994b20ba051c2fea.zip |
Replacing 'for' with 'each' in actionmailer guide
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/action_mailer_basics.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/action_mailer_basics.textile b/railties/guides/source/action_mailer_basics.textile index a6ff8f877d..4c5d792f85 100644 --- a/railties/guides/source/action_mailer_basics.textile +++ b/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 |