Submit summary
This commit is contained in:
@ -33,6 +33,17 @@ class Candidate < ApplicationRecord
|
||||
"--"
|
||||
end
|
||||
|
||||
def complete!
|
||||
if update_attributes(completed: true)
|
||||
CandidateMailer.submitted(self).deliver_now
|
||||
RecruiterMailer.candidate_submitted(self).deliver_now
|
||||
ReviewerMailer.candidate_submission(self).deliver_now
|
||||
return true
|
||||
end
|
||||
false
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
def generate_test_hash
|
||||
|
Reference in New Issue
Block a user