Add total followers on dossier list and followers list on dossier page for gestionnaire
This commit is contained in:
parent
7d0bcfc35f
commit
127c9bb138
7 changed files with 82 additions and 27 deletions
|
@ -49,4 +49,8 @@ class DossierFacades
|
|||
def commentaires_files
|
||||
PieceJustificative.where(dossier_id: @dossier.id, type_de_piece_justificative_id: nil)
|
||||
end
|
||||
|
||||
def followers
|
||||
Gestionnaire.joins(:follows).where("follows.dossier_id=#{@dossier.id}")
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue