From 3685e54d8e042e5cf863c8cd83dd982579e2d995 Mon Sep 17 00:00:00 2001 From: Bomrah Harry Date: Wed, 18 Jul 2018 19:44:58 +0800 Subject: [PATCH] added params --- app/controllers/recruitments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)