aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorEgor Homakov <homakov@gmail.com>2012-03-17 07:05:38 +0100
committerEgor Homakov <homakov@gmail.com>2012-03-17 07:05:38 +0100
commitbf94f1cab77fc4eb7fc806fd43120f9f23b451ad (patch)
tree32637d85cd5de31bc5715df74f408b16b4da801b /railties/guides
parentf820098f9ef8fe6e1a5f188d01c3eb2586c5546e (diff)
downloadrails-bf94f1cab77fc4eb7fc806fd43120f9f23b451ad.tar.gz
rails-bf94f1cab77fc4eb7fc806fd43120f9f23b451ad.tar.bz2
rails-bf94f1cab77fc4eb7fc806fd43120f9f23b451ad.zip
using pluck
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/action_mailer_basics.textile2
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)