Sha256: 275c7fc9f3fb1aad8e6075a7b5698373e5dcbf419546cc977e3832f3dede4bee

Contents?: true

Size: 341 Bytes

Versions: 121

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module Patients
    class User < ActiveType::Record[Renalware::User]
      has_many :bookmarks, dependent: :restrict_with_exception
      has_many :patients, through: :bookmarks

      def bookmark_for_patient(patient)
        bookmarks.find_by(patient: patient)
      end
    end
  end
end

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
renalware-core-2.0.127 app/models/renalware/patients/user.rb
renalware-core-2.0.126 app/models/renalware/patients/user.rb
renalware-core-2.0.125 app/models/renalware/patients/user.rb
renalware-core-2.0.124 app/models/renalware/patients/user.rb
renalware-core-2.0.123 app/models/renalware/patients/user.rb
renalware-core-2.0.121 app/models/renalware/patients/user.rb
renalware-core-2.0.120 app/models/renalware/patients/user.rb
renalware-core-2.0.119 app/models/renalware/patients/user.rb
renalware-core-2.0.118 app/models/renalware/patients/user.rb
renalware-core-2.0.117 app/models/renalware/patients/user.rb
renalware-core-2.0.116 app/models/renalware/patients/user.rb
renalware-core-2.0.115 app/models/renalware/patients/user.rb
renalware-core-2.0.113 app/models/renalware/patients/user.rb
renalware-core-2.0.112 app/models/renalware/patients/user.rb
renalware-core-2.0.111 app/models/renalware/patients/user.rb
renalware-core-2.0.110 app/models/renalware/patients/user.rb
renalware-core-2.0.109 app/models/renalware/patients/user.rb
renalware-core-2.0.108 app/models/renalware/patients/user.rb
renalware-core-2.0.106 app/models/renalware/patients/user.rb
renalware-core-2.0.105 app/models/renalware/patients/user.rb