Add method « Dossier with unread notifications » for DossierListFacade
This commit is contained in:
parent
983cec659b
commit
bfbe57d533
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue