Sha256: e243dc20d2a1e87cbcc08d8ae2e3bac9824565378b4946a23e117217210b41af

Contents?: true

Size: 379 Bytes

Versions: 7

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/patients"

module Renalware
  module Patients
    class Alert < ApplicationRecord
      include Accountable
      acts_as_paranoid

      attr_accessor :urgency # for use in forms
      validates :patient, presence: true
      validates :notes, presence: true

      belongs_to :patient, touch: true
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
renalware-core-2.0.149 app/models/renalware/patients/alert.rb
renalware-core-2.0.148 app/models/renalware/patients/alert.rb
renalware-core-2.0.147 app/models/renalware/patients/alert.rb
renalware-core-2.0.146 app/models/renalware/patients/alert.rb
renalware-core-2.0.145 app/models/renalware/patients/alert.rb
renalware-core-2.0.144 app/models/renalware/patients/alert.rb
renalware-core-2.0.143 app/models/renalware/patients/alert.rb