Class: Comee::Core::Notification
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Comee::Core::Notification
- Includes:
- Noticed::Model
- Defined in:
- app/models/comee/core/notification.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.messages(notifications) ⇒ Object
12 13 14 |
# File 'app/models/comee/core/notification.rb', line 12 def self.(notifications) notifications.map(&:message) end |
Instance Method Details
#message ⇒ Object
8 9 10 |
# File 'app/models/comee/core/notification.rb', line 8 def {id: id, read: !read_at.nil?, created_at: created_at}.merge(to_notification.) end |