add and modify controllers

This commit is contained in:
kara Diaby 2021-04-29 09:32:47 +02:00
parent b3caa2e5f4
commit 7d9cf63056
2 changed files with 53 additions and 12 deletions

View file

@ -1,12 +0,0 @@
module Instructeurs
class RechercheController < InstructeurController
def index
@search_terms = params[:q]
@dossiers = DossierSearchService.matching_dossiers_for_instructeur(@search_terms, current_instructeur)
@followed_dossiers_id = current_instructeur
.followed_dossiers
.where(groupe_instructeur_id: @dossiers.pluck(:groupe_instructeur_id))
.pluck(:id)
end
end
end