From ed9da67a2746a283d2e57239dfb6d9a089337e0f Mon Sep 17 00:00:00 2001 From: Bomrah Harry Date: Wed, 18 Jul 2018 19:50:44 +0800 Subject: [PATCH] small fix --- app/controllers/recruitments_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/recruitments_controller.rb b/app/controllers/recruitments_controller.rb index 110696f..935ba17 100644 --- a/app/controllers/recruitments_controller.rb +++ b/app/controllers/recruitments_controller.rb @@ -696,8 +696,8 @@ class RecruitmentsController < PseudoSessionController candidates = [] keywords = params[:q].split(",").collect{|s| /#{s.strip}/i} names = RecruitProfile.any_of({:first_name.in => keywords}, {:last_name.in => keywords}).pluck(:id) - designations = EmployerProfile.where(:desired_job_title.in => keywords) - skills = EmployerProfile.where(:skills.in => keywords) + designations = EmployeeProfile.where(:desired_job_title.in => keywords) + skills = EmployeeProfile.where(:skills.in => keywords) query = [] if names.count > 0 query << {:recruit_profile_id.in => names}