Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
send each students mail separately
Browse files Browse the repository at this point in the history
  • Loading branch information
cesswairimu committed Apr 6, 2018
1 parent 0322a67 commit 46d9658
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/models/application_draft.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ def notify_orga
end

def notify_submitters
team.students.each do |student|
ApplicationFormMailer.submitted(application: application, student: student).deliver_later
end
ApplicationFormMailer.submitted(application: application, student: team.students.first).deliver_later
ApplicationFormMailer.submitted(application: application, student: team.students.second).deliver_later
end
end

0 comments on commit 46d9658

Please sign in to comment.