added params

This commit is contained in:
Bomrah Harry 2018-07-18 19:44:58 +08:00
parent ac92b58c4a
commit 3685e54d8e
1 changed files with 1 additions and 1 deletions

View File

@ -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)