diff --git a/app/models/recruitment_job.rb b/app/models/recruitment_job.rb index 9c8dae7..35aa4fa 100644 --- a/app/models/recruitment_job.rb +++ b/app/models/recruitment_job.rb @@ -51,7 +51,8 @@ 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})} + scope :not_expired, ->{where(:created_at.lt=>Time.now, :expiry_date.gt=>Time.now)} def get_category RecruitmentCategory.find(self.category).job_category rescue "" diff --git a/app/views/admin/recruitments/_posting_index.html.erb b/app/views/admin/recruitments/_posting_index.html.erb index 8d0618d..5f4465e 100644 --- a/app/views/admin/recruitments/_posting_index.html.erb +++ b/app/views/admin/recruitments/_posting_index.html.erb @@ -19,7 +19,7 @@ <% jobcount = job.get_application_count %>