recruiter Resend welcome email

This commit is contained in:
Mark Moser
2016-09-15 10:01:31 -05:00
parent 9884748cf9
commit 372e86507e
9 changed files with 70 additions and 6 deletions

View File

@ -45,6 +45,12 @@ class RecruiterController < ApplicationController
redirect_to recruiter_login_path
end
def resend_welcome
candidate = Candidate.find_by(id: params[:id])
CandidateMailer.welcome(candidate).deliver_later
render json: { message: "Email queued!" }.to_json
end
private
def candidate_params