Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

using pluck

  • Loading branch information...
commit bf94f1cab77fc4eb7fc806fd43120f9f23b451ad 1 parent f820098
Egor Homakov homakov authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/guides/source/action_mailer_basics.textile
2  railties/guides/source/action_mailer_basics.textile
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.