small fix
This commit is contained in:
parent
1b97fb0aa7
commit
ed9da67a27
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue