Sha256: b1e871a37a213227168c6d0c3378a1bc8f2cf1a05a19656f45e9f5b5d49b42e0

Contents?: true

Size: 380 Bytes

Versions: 18

Compression:

Stored size: 380 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

18 entries across 18 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/models/renalware/patients/alert.rb
renalware-core-2.1.0 app/models/renalware/patients/alert.rb
renalware-core-2.0.167 app/models/renalware/patients/alert.rb
renalware-core-2.0.166 app/models/renalware/patients/alert.rb
renalware-core-2.0.165 app/models/renalware/patients/alert.rb
renalware-core-2.0.164 app/models/renalware/patients/alert.rb
renalware-core-2.0.163 app/models/renalware/patients/alert.rb
renalware-core-2.0.162 app/models/renalware/patients/alert.rb
renalware-core-2.0.161 app/models/renalware/patients/alert.rb
renalware-core-2.0.160 app/models/renalware/patients/alert.rb
renalware-core-2.0.159 app/models/renalware/patients/alert.rb
renalware-core-2.0.158 app/models/renalware/patients/alert.rb
renalware-core-2.0.157 app/models/renalware/patients/alert.rb
renalware-core-2.0.156 app/models/renalware/patients/alert.rb
renalware-core-2.0.155 app/models/renalware/patients/alert.rb
renalware-core-2.0.153 app/models/renalware/patients/alert.rb
renalware-core-2.0.152 app/models/renalware/patients/alert.rb
renalware-core-2.0.151 app/models/renalware/patients/alert.rb