Class: Jobshop::TeamsMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/jobshop/teams_mailer.rb

Instance Method Summary collapse

Instance Method Details

#found_teams(email, teams) ⇒ Object



3
4
5
6
7
8
# File 'app/mailers/jobshop/teams_mailer.rb', line 3

def found_teams(email, teams)
  @user = Jobshop::User.where(email: email).first
  @teams = teams

  mail(to: email, subject: "We found your Jobshop Teams!")
end