Class: Notification
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Notification
- Defined in:
- app/models/notification.rb
Overview
Component notification for user
Attributes:
biovision_component_id [BiovisionComponent]
created_at [DateTime]
data [jsonb]
email_sent [boolean]
read [boolean]
updated_at [DateTime]
user_id [User]
uuid [uuid]
Class Method Summary collapse
Instance Method Summary collapse
Methods included from HasOwner
Class Method Details
.page_for_owner(user, page = 1) ⇒ Object
30 31 32 |
# File 'app/models/notification.rb', line 30 def self.page_for_owner(user, page = 1) list_for_owner(user).page(page) end |
Instance Method Details
#component_slug ⇒ Object
34 35 36 |
# File 'app/models/notification.rb', line 34 def component_slug biovision_component.slug end |