skill-assessment-app/app/mailers/reviewer_mailer.rb
2017-02-08 17:57:25 -06:00

16 lines
402 B
Ruby

# frozen_string_literal: true
class ReviewerMailer < ApplicationMailer
def candidate_submission candidate
@candidate = candidate
recipients = candidate.quiz.reviewers.map(&:email)
mail to: recipients, subject: "Skills Assessment Results - #{@candidate.test_hash}"
end
def reminder reminder
@reminder = reminder
mail to: reminder.email, subject: "Review Reminder"
end
end