From a9f688648cf91b3424710c185b0f17982734d4b6 Mon Sep 17 00:00:00 2001 From: Alexey Vakhov Date: Tue, 13 Mar 2012 21:55:42 +0400 Subject: [PATCH] Fix AM Guide Use proc as default argument to recaculate recipients array every time --- railties/guides/source/action_mailer_basics.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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)