2016-09-08 10:25:33 -05:00
|
|
|
# frozen_string_literal: true
|
2016-08-02 10:35:33 -05:00
|
|
|
class RecruiterMailer < ApplicationMailer
|
|
|
|
def candidate_created candidate
|
2017-03-02 10:21:30 -06:00
|
|
|
@candidate = Candidate.find_by(id: candidate.to_i)
|
2016-08-02 10:35:33 -05:00
|
|
|
|
2016-11-30 18:55:27 -06:00
|
|
|
mail to: @candidate.recruiter.email,
|
|
|
|
subject: "Skills Assessment Test - #{candidate.name}"
|
2016-08-02 10:35:33 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def candidate_submitted candidate
|
2017-03-02 10:21:30 -06:00
|
|
|
@candidate = Candidate.find_by(id: candidate.to_i)
|
2016-08-02 10:35:33 -05:00
|
|
|
|
2016-11-30 18:55:27 -06:00
|
|
|
mail to: @candidate.recruiter.email,
|
|
|
|
subject: "Skills Assessment Test - #{candidate.name}"
|
|
|
|
end
|
|
|
|
|
2017-03-02 10:21:30 -06:00
|
|
|
def candidate_reviewed candidate
|
|
|
|
@candidate = Candidate.find_by(id: candidate.to_i)
|
2016-11-30 18:55:27 -06:00
|
|
|
|
|
|
|
mail to: @candidate.recruiter.email,
|
2017-03-02 10:21:30 -06:00
|
|
|
subject: "Skills Assesment - Review Complete for #{candidate.name}"
|
2016-08-02 10:35:33 -05:00
|
|
|
end
|
|
|
|
end
|