Sha256: c16000f805438285f09c6253bca4cf24c70f34b5c6893b664a30634c61f5e5a2

Contents?: true

Size: 480 Bytes

Versions: 15

Compression:

Stored size: 480 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
      belongs_to :author
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.rc10 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.rc9 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.rc8 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.rc7 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.rc6 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.rc5 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.rc4 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.rc3 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.rc1 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.beta12 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.beta11 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.beta10 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.beta9 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.beta8 app/models/renalware/messaging/message.rb