16 lines
456 B
Ruby
16 lines
456 B
Ruby
class Notification < ActiveRecord::Base
|
|
belongs_to :dossier
|
|
|
|
# after_save :broadcast_notification
|
|
|
|
enum type_notif: {
|
|
commentaire: 'commentaire',
|
|
cerfa: 'cerfa',
|
|
piece_justificative: 'piece_justificative'
|
|
}
|
|
|
|
# def broadcast_notification
|
|
# ActionCable.server.broadcast 'notifications',
|
|
# message: "Nouveau commentaire posté sur le dossier #{self.dossier.id}"
|
|
# end
|
|
end
|