Sha256: 9de5e4aad18ffa6f937c0465604d5d8799317356f08c54f7c3fc11910dbdbaad
Contents?: true
Size: 374 Bytes
Versions: 3
Compression:
Stored size: 374 Bytes
Contents
require_dependency "renalware/messaging" module Renalware module Messaging class Receipt < ApplicationRecord validates :recipient, presence: true validates :message, presence: true belongs_to :message belongs_to :recipient scope :unread, -> { where(read_at: nil) } def read? read_at.present? end end end end
Version data entries
3 entries across 3 versions & 1 rubygems