diff --git a/app/controllers/recruitments_controller.rb b/app/controllers/recruitments_controller.rb index fbfa481..fdee499 100644 --- a/app/controllers/recruitments_controller.rb +++ b/app/controllers/recruitments_controller.rb @@ -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)