completes #84 : interview request status tweaks

This commit is contained in:
Mark Moser committed 2016-11-28 15:40:25 -06:00
1 parent f94de75f01
commit bcb840c986
4 files changed
+25 -17

No files matched your search

+5
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)