demarches-normaliennes/app/models/notification.rb
2016-12-26 11:42:02 +01:00

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