better quiz access
This commit is contained in:
1 parent
cefd8bf131
commit
80403ad02d
3 files changed
+94
No files matched your search
@@ -18,6 +18,14 @@ class Candidate < ApplicationRecord
|
||||
answers.where.not(answer: nil)
|
||||
end
|
||||
|
||||
def fetch_question qid
|
||||
CandidateQuiz.new(id).fetch_question(qid).first
|
||||
end
|
||||
|
||||
def my_quiz
|
||||
CandidateQuiz.new(id).build_my_quiz
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def generate_test_hash
|
||||
|
||||
Reference in new issue
Block a user