diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2012-03-13 21:55:42 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2012-03-13 21:57:42 +0400 |
commit | a9f688648cf91b3424710c185b0f17982734d4b6 (patch) | |
tree | b70f1ab6d3d2266f24d2fa2b31f8b7b94f307aab /railties/guides | |
parent | 6d0cc770ceca7f900eae4aa557a8b8ce00f2f8f4 (diff) | |
download | rails-a9f688648cf91b3424710c185b0f17982734d4b6.tar.gz rails-a9f688648cf91b3424710c185b0f17982734d4b6.tar.bz2 rails-a9f688648cf91b3424710c185b0f17982734d4b6.zip |
Fix AM Guide
Use proc as default argument to recaculate recipients array every time
Diffstat (limited to 'railties/guides')
-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 26c95be031..2760e03be1 100644 --- a/railties/guides/source/action_mailer_basics.textile +++ b/railties/guides/source/action_mailer_basics.textile @@ -244,7 +244,7 @@ It is possible to send email to one or more recipients in one email (for e.g. in <ruby> class AdminMailer < ActionMailer::Base - default :to => Admin.all.map(&:email), + default :to => Proc.new { Admin.all.map(&:email) }, :from => "notification@example.com" def new_registration(user) |