start encoding candidate emails - completes #57

This commit is contained in:
Mark Moser committed 2016-08-26 16:03:55 -05:00
1 parent 8269bb9e5c
commit 229ebf1380
7 files changed
+123 -9

No files matched your search

+2
View File
@@ -4,6 +4,8 @@ class Candidate < ApplicationRecord
has_many :answers
belongs_to :recruiter, class_name: "User"
serialize :email, CryptSerializer
before_validation(:generate_test_hash, on: :create)
validates_presence_of :recruiter_id