skill-assessment-app/app/controllers/application_controller.rb
2016-07-29 11:55:53 -05:00

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