diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2009-11-20 22:01:40 +1100 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2009-11-20 22:01:40 +1100 |
commit | 6456a08334703ceb91ed69b1426a171dc956e1b9 (patch) | |
tree | 69a87028f384d0fe3d598a76f0c3f0a8cea40051 /actionmailer/lib/action_mailer | |
parent | a5e6295d72733b0ab4d5cff1003574e98913bae8 (diff) | |
download | rails-6456a08334703ceb91ed69b1426a171dc956e1b9.tar.gz rails-6456a08334703ceb91ed69b1426a171dc956e1b9.tar.bz2 rails-6456a08334703ceb91ed69b1426a171dc956e1b9.zip |
Down to 13 failures, 14 errors
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/delivery_method/file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/delivery_method/file.rb b/actionmailer/lib/action_mailer/delivery_method/file.rb index 587ae37ffa..99ef5bc76d 100644 --- a/actionmailer/lib/action_mailer/delivery_method/file.rb +++ b/actionmailer/lib/action_mailer/delivery_method/file.rb @@ -12,7 +12,7 @@ module ActionMailer def perform_delivery(mail) FileUtils.mkdir_p settings[:location] - (mail.to + mail.cc + mail.bcc).uniq.each do |to| + mail.destinations.uniq.each do |to| ::File.open(::File.join(settings[:location], to), 'a') { |f| f.write(mail) } end end |