Class: Notification

Inherits:
ApplicationRecord
  • Object
show all
Includes:
HasOwner, HasUuid
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

#owned_by?, #owner_name

Class Method Details

.page_for_owner(user, page = 1) ⇒ Object

Parameters:

  • user (User)
  • page (Integer) (defaults to: 1)


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_slugObject



34
35
36
# File 'app/models/notification.rb', line 34

def component_slug
  biovision_component.slug
end