Class: Sipity::Notification

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/sipity/notification.rb

Overview

Responsible for defining a notification that is associated with a given context; I believe the context is something that will be triggered via an action however, I don’t believe this needs to be a “hard” relationship. It is instead a polymorphic relationship.

Constant Summary collapse

NOTIFICATION_TYPE_EMAIL =
'email'.freeze

Class Method Summary collapse

Class Method Details

.valid_notification_typesObject



24
25
26
# File 'app/models/sipity/notification.rb', line 24

def self.valid_notification_types
  notification_types.keys
end