skill-assessment-app/app/mailers/reviewer_mailer.rb

16 lines
402 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-08-02 11:30:03 -05:00
class ReviewerMailer < ApplicationMailer
def candidate_submission candidate
@candidate = candidate
recipients = candidate.quiz.reviewers.map(&:email)
2016-08-02 11:30:03 -05:00
mail to: recipients, subject: "Skills Assessment Results - #{@candidate.test_hash}"
2016-08-02 11:30:03 -05:00
end
2017-02-08 17:57:25 -06:00
def reminder reminder
@reminder = reminder
mail to: reminder.email, subject: "Review Reminder"
end
2016-08-02 11:30:03 -05:00
end