Skip to content

Commit c9cda91

Browse files
committed
Diffusion with one query
1 parent b01cf59 commit c9cda91

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

app/controllers/mailer_controller.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
class MailerController < ApplicationController
22
def new
33
@users = Array(params[:user])
4-
5-
@emails = Array.new
64
@emails = User.where(:username => @users).all.map(&:email);
7-
85
@message = Message.new
96
end
107

0 commit comments

Comments
 (0)