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