8 lines
203 B
Ruby
8 lines
203 B
Ruby
class ApplicationController < ActionController::Base
|
|
protect_from_forgery with: :exception
|
|
|
|
def current_candidate
|
|
@current_candidate ||= Candidate.find_by(test_hash: session[:test_id])
|
|
end
|
|
end
|