AvisController: add a notification when a avis has been received

This commit is contained in:
Simon Lehericey 2017-05-22 17:10:17 +02:00
parent 34a7905828
commit cdcd5b951f
4 changed files with 11 additions and 1 deletions

View file

@ -5,7 +5,8 @@ class Notification < ActiveRecord::Base
cerfa: 'cerfa',
piece_justificative: 'piece_justificative',
champs: 'champs',
submitted: 'submitted'
submitted: 'submitted',
avis: 'avis'
}
scope :unread, -> { where(already_read: false) }
end