Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

using pluck

  • Loading branch information...
commit bf94f1cab77fc4eb7fc806fd43120f9f23b451ad 1 parent f820098
@homakov homakov authored
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.
Something went wrong with that request. Please try again.