1
0
Fork 0
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:
Alexey Vakhov 2012-03-13 21:55:42 +04:00
parent 6d0cc770ce
commit a9f688648c

View file

@ -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)