better quiz access
This commit is contained in:
@ -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