Browse files

using pluck

  • Loading branch information...
1 parent f820098 commit bf94f1cab77fc4eb7fc806fd43120f9f23b451ad @homakov homakov committed Mar 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/action_mailer_basics.textile
View
2 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)

0 comments on commit bf94f1c

Please sign in to comment.