18 lines
296 B
Ruby
18 lines
296 B
Ruby
class WorkInfo < ActiveRecord::Base
|
|
attr_accessible :DoB, :SSN, :bonuses, :income, :years_worked
|
|
belongs_to :user
|
|
#before_save :encrypt_ssn
|
|
|
|
# We should probably use this
|
|
def last_four
|
|
"***-**-" << self.SSN[-4,4]
|
|
end
|
|
|
|
def encrypt_ssn
|
|
end
|
|
|
|
def decrypt_ssn
|
|
end
|
|
|
|
end
|