add and modify controllers
This commit is contained in:
parent
b3caa2e5f4
commit
7d9cf63056
2 changed files with 53 additions and 12 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue