displays welcome back when test has started
This commit is contained in:
@ -14,6 +14,7 @@ class ApplicationController < ActionController::Base
|
||||
def current_candidate
|
||||
@current_candidate ||= Candidate.find_by(test_hash: session[:test_id]) if session[:test_id]
|
||||
end
|
||||
helper_method :current_candidate
|
||||
|
||||
private
|
||||
|
||||
|
@ -11,6 +11,7 @@ class CandidateController < ApplicationController
|
||||
end
|
||||
|
||||
def welcome
|
||||
render :welcome_back if current_candidate.answers.count > 0
|
||||
end
|
||||
|
||||
def saved
|
||||
|
Reference in New Issue
Block a user