12 lines
202 B
Ruby
12 lines
202 B
Ruby
|
class EmployeeJobApplication
|
||
|
include Mongoid::Document
|
||
|
include Mongoid::Timestamps
|
||
|
|
||
|
field :job
|
||
|
|
||
|
belongs_to :employee_profile
|
||
|
|
||
|
def get_job
|
||
|
RecruitmentJob.find(self.job) rescue nil
|
||
|
end
|
||
|
end
|