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

24 lines
695 B
Ruby
Raw Permalink Normal View History

# 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
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
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)
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