Sha256: 5b32fd001832c18de898a4129e464e2d488c742a33794606bb02bb90cddf3694
Contents?: true
Size: 374 Bytes
Versions: 234
Compression:
Stored size: 374 Bytes
Contents
module Comee module Core class Notification < ApplicationRecord include Noticed::Model belongs_to :recipient, polymorphic: true def message {id: id, read: !read_at.nil?, created_at: created_at}.merge(to_notification.message) end def self.messages(notifications) notifications.map(&:message) end end end end
Version data entries
234 entries across 234 versions & 1 rubygems