Add method « Dossier with unread notifications » for DossierListFacade

This commit is contained in:
Xavier J 2017-01-02 15:10:53 +01:00
parent 983cec659b
commit bfbe57d533

View file

@ -38,6 +38,10 @@ class DossiersListFacades
current_devise_profil.notifications
end
def dossiers_with_unread_notifications
(unread_notifications.inject([]) { |acc, notif| acc.push(notif.dossier) }).uniq
end
def procedure_id
@procedure.nil? ? nil : @procedure.id
end