completes #84 : interview request status tweaks

This commit is contained in:
Mark Moser
2016-11-28 15:40:25 -06:00
parent f94de75f01
commit bcb840c986
4 changed files with 25 additions and 17 deletions

View File

@ -23,6 +23,11 @@ class Candidate < ApplicationRecord
declined: 2
}
def interview?
return 'yes' if approved?
'no' if declined?
end
def build_reviews
reviewers.each do |reviewer|
votes.find_or_create_by(user_id: reviewer.id)