skill-assessment-app/app/mailers/recruiter_mailer.rb
2016-08-02 10:35:33 -05:00

14 lines
375 B
Ruby

class RecruiterMailer < ApplicationMailer
def candidate_created candidate
@candidate = candidate
mail to: @candidate.recruiter.email, subject: "Skills Assessment Test - #{candidate.name}"
end
def candidate_submitted candidate
@candidate = candidate
mail to: @candidate.recruiter.email, subject: "Skills Assessment Test - #{candidate.name}"
end
end