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

31 lines
805 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-08-02 10:35:33 -05:00
class RecruiterMailer < ApplicationMailer
def candidate_created candidate
@candidate = candidate
mail to: @candidate.recruiter.email,
subject: "Skills Assessment Test - #{candidate.name}"
2016-08-02 10:35:33 -05:00
end
def candidate_submitted candidate
@candidate = candidate
mail to: @candidate.recruiter.email,
subject: "Skills Assessment Test - #{candidate.name}"
end
def interview_requested candidate
@candidate = candidate
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}"
2016-08-02 10:35:33 -05:00
end
end