DossierListFacades: remove useless total_new_dossier and new_dossier_number

This commit is contained in:
LeSim 2017-12-15 15:36:26 +01:00
parent 640a42d6cc
commit 899f2a91dd

View file

@ -21,14 +21,6 @@ class DossiersListFacades
@current_devise_profil.followed_dossiers.count
end
def total_new_dossier
current_devise_profil.dossiers.en_construction.count
end
def new_dossier_number procedure_id
current_devise_profil.dossiers.en_construction.where(procedure_id: procedure_id).count
end
def gestionnaire_procedures_name_and_id_list
@current_devise_profil.procedures.order('libelle ASC').inject([]) { |acc, procedure| acc.push({id: procedure.id, libelle: procedure.libelle, unread_notifications: @current_devise_profil.dossiers_with_notifications_count_for_procedure(procedure)}) }
end