From a17b157a0084d27af39f342cf46a44144acafdb0 Mon Sep 17 00:00:00 2001 From: Bomrah Harry Date: Wed, 18 Jul 2018 22:29:33 +0800 Subject: [PATCH] small --- app/models/recruitment_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/recruitment_job.rb b/app/models/recruitment_job.rb index af28a60..9c8dae7 100644 --- a/app/models/recruitment_job.rb +++ b/app/models/recruitment_job.rb @@ -51,7 +51,7 @@ class RecruitmentJob scope :jobs, ->{where(:post_type => "type1")} scope :internships, ->{where(:post_type => "type2")} 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 RecruitmentCategory.find(self.category).job_category rescue ""