mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix AM Guide
Use proc as default argument to recaculate recipients array every time
This commit is contained in:
parent
6d0cc770ce
commit
a9f688648c
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ It is possible to send email to one or more recipients in one email (for e.g. in
|
||||||
|
|
||||||
<ruby>
|
<ruby>
|
||||||
class AdminMailer < ActionMailer::Base
|
class AdminMailer < ActionMailer::Base
|
||||||
default :to => Admin.all.map(&:email),
|
default :to => Proc.new { Admin.all.map(&:email) },
|
||||||
:from => "notification@example.com"
|
:from => "notification@example.com"
|
||||||
|
|
||||||
def new_registration(user)
|
def new_registration(user)
|
||||||
|
|
Loading…
Reference in a new issue