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}