From d11f19e8e158187b8ad0b67d1b33fa8f825e6767 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 29 May 2019 16:27:03 +0800 Subject: [PATCH] 1 --- app/controllers/shixuns_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index aa6d6bc3..22703745 100755 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -398,7 +398,6 @@ class ShixunsController < ApplicationController if search.present? search_shixun_ids = Shixun.joins(:users, challenges: :challenge_tags). where("challenge_tags.name like '%#{search}%' - or subject like '%#{search}%' or challenges.subject like '%#{search}%' or concat(lastname, firstname) like '%#{search}%' or shixuns.name like '%#{search}%'").pluck(:id)