diff options
author | Egor Homakov <homakov@gmail.com> | 2012-03-17 07:05:38 +0100 |
---|---|---|
committer | Egor Homakov <homakov@gmail.com> | 2012-03-17 07:05:38 +0100 |
commit | bf94f1cab77fc4eb7fc806fd43120f9f23b451ad (patch) | |
tree | 32637d85cd5de31bc5715df74f408b16b4da801b | |
parent | f820098f9ef8fe6e1a5f188d01c3eb2586c5546e (diff) | |
download | rails-bf94f1cab77fc4eb7fc806fd43120f9f23b451ad.tar.gz rails-bf94f1cab77fc4eb7fc806fd43120f9f23b451ad.tar.bz2 rails-bf94f1cab77fc4eb7fc806fd43120f9f23b451ad.zip |
using pluck
-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 2760e03be1..c277f764e7 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 => Proc.new { Admin.all.map(&:email) }, + default :to => Proc.new { Admin.pluck(:email) }, :from => "notification@example.com" def new_registration(user) |