Submit summary
This commit is contained in:
1 parent
988f1346c1
commit
7bdb86f89f
6 files changed
+135
-14
No files matched your search
@@ -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