small
This commit is contained in:
parent
8457569a3d
commit
a17b157a00
|
@ -51,7 +51,7 @@ class RecruitmentJob
|
||||||
scope :jobs, ->{where(:post_type => "type1")}
|
scope :jobs, ->{where(:post_type => "type1")}
|
||||||
scope :internships, ->{where(:post_type => "type2")}
|
scope :internships, ->{where(:post_type => "type2")}
|
||||||
scope :exchanges, ->{where(:post_type => "type3")}
|
scope :exchanges, ->{where(:post_type => "type3")}
|
||||||
scope :not_expired, ->{.any_of({:created_at.lt=>Time.now, :expiry_date.gt=>Time.now},{:created_at.lt=>Time.now, :expiry_date=>nil})}
|
scope :not_expired, ->{any_of({:created_at.lt=>Time.now, :expiry_date.gt=>Time.now},{:created_at.lt=>Time.now, :expiry_date=>nil})}
|
||||||
|
|
||||||
def get_category
|
def get_category
|
||||||
RecruitmentCategory.find(self.category).job_category rescue ""
|
RecruitmentCategory.find(self.category).job_category rescue ""
|
||||||
|
|
Loading…
Reference in New Issue