mailer work
This commit is contained in:
@ -1,30 +1,23 @@
|
||||
# frozen_string_literal: true
|
||||
class RecruiterMailer < ApplicationMailer
|
||||
def candidate_created candidate
|
||||
@candidate = candidate
|
||||
@candidate = Candidate.find_by(id: candidate.to_i)
|
||||
|
||||
mail to: @candidate.recruiter.email,
|
||||
subject: "Skills Assessment Test - #{candidate.name}"
|
||||
end
|
||||
|
||||
def candidate_submitted candidate
|
||||
@candidate = candidate
|
||||
@candidate = Candidate.find_by(id: candidate.to_i)
|
||||
|
||||
mail to: @candidate.recruiter.email,
|
||||
subject: "Skills Assessment Test - #{candidate.name}"
|
||||
end
|
||||
|
||||
def interview_requested candidate
|
||||
@candidate = candidate
|
||||
def candidate_reviewed candidate
|
||||
@candidate = Candidate.find_by(id: candidate.to_i)
|
||||
|
||||
mail to: @candidate.recruiter.email,
|
||||
subject: "Skills Assesment - Interview Request for #{candidate.name}"
|
||||
end
|
||||
|
||||
def interview_declined candidate
|
||||
@candidate = candidate
|
||||
|
||||
mail to: @candidate.recruiter.email,
|
||||
subject: "Skills Assesment - Interview Declined for #{candidate.name}"
|
||||
subject: "Skills Assesment - Review Complete for #{candidate.name}"
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user