remove hard coded review email addresses

This commit is contained in:
Mark Moser
2016-09-15 13:40:43 -05:00
parent 2233d73c39
commit 3f77a00870
2 changed files with 2 additions and 9 deletions

View File

@ -2,14 +2,7 @@
class ReviewerMailer < ApplicationMailer
def candidate_submission candidate
@candidate = candidate
# TODO: candidate.reviewers.map(:email)
if Rails.env.production?
recipients = ["harish.bhavanichikar@perficient.com", "jacob.schulke@perficient.com",
"jennifer.siegfried@perficient.com", "martin.ridgway@perficient.com"]
else
recipients = ["fed.reviewer@mailinator.com"]
end
recipients = candidate.quiz.reviewers.map(&:email)
mail to: recipients, subject: "Skills Assessment Results"
end