demarches-normaliennes/app/models/notification.rb
gregoirenovel 3ca914aba8 Delete some environment-based conditions
We should always try to be the closest to the
production environment
2017-04-10 16:17:33 +02:00

19 lines
577 B
Ruby

class Notification < ActiveRecord::Base
belongs_to :dossier
# after_save :broadcast_notification
enum type_notif: {
commentaire: 'commentaire',
cerfa: 'cerfa',
piece_justificative: 'piece_justificative',
champs: 'champs',
submitted: 'submitted'
}
# def broadcast_notification
# ActionCable.server.broadcast 'notifications',
# message: "Dossier n°#{self.dossier.id} : #{self.liste.last}",
# dossier: {id: self.dossier.id}
# end
end