Sha256: 9ff449a222a3893c07156ecb97287e260e0945580a0fce4617794e0f343a83a7

Contents?: true

Size: 500 Bytes

Versions: 9

Compression:

Stored size: 500 Bytes

Contents

require_dependency "renalware/messaging"

#
# Abstract Message base class.
# Use Internal::Message etc. subclasses (stored via STI).
#
module Renalware
  module Messaging
    class Message < ApplicationRecord
      validates :body, presence: true
      validates :subject, presence: true
      validates :author, presence: true
      validates :patient, presence: true
      validates :sent_at, presence: true

      belongs_to :patient # no touch required
      belongs_to :author
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
renalware-core-2.0.8 app/models/renalware/messaging/message.rb
renalware-core-2.0.7 app/models/renalware/messaging/message.rb
renalware-core-2.0.5 app/models/renalware/messaging/message.rb
renalware-core-2.0.4 app/models/renalware/messaging/message.rb
renalware-core-2.0.3 app/models/renalware/messaging/message.rb
renalware-core-2.0.2 app/models/renalware/messaging/message.rb
renalware-core-2.0.1 app/models/renalware/messaging/message.rb
renalware-core-2.0.0 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.rc13 app/models/renalware/messaging/message.rb