Add total followers on dossier list and followers list on dossier page for gestionnaire

This commit is contained in:
Xavier J 2016-07-19 16:44:26 +02:00
parent 7d0bcfc35f
commit 127c9bb138
7 changed files with 82 additions and 27 deletions

View file

@ -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