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