added params
This commit is contained in:
parent
ac92b58c4a
commit
3685e54d8e
|
@ -692,7 +692,7 @@ class RecruitmentsController < PseudoSessionController
|
||||||
rjobs
|
rjobs
|
||||||
end
|
end
|
||||||
|
|
||||||
def filter_candidates
|
def filter_candidates(params)
|
||||||
candidates = []
|
candidates = []
|
||||||
keywords = params[:q].split(",").collect{|s| /#{s.strip}/i}
|
keywords = params[:q].split(",").collect{|s| /#{s.strip}/i}
|
||||||
names = RecruitProfile.any_of({:first_name.in => keywords}, {:last_name.in => keywords}).pluck(:id)
|
names = RecruitProfile.any_of({:first_name.in => keywords}, {:last_name.in => keywords}).pluck(:id)
|
||||||
|
|
Loading…
Reference in New Issue