Sha256: 05e2e20fb739a5c179cd71f51163329dfe9fe7396bfed030a14017f7feeebbb3

Contents?: true

Size: 599 Bytes

Versions: 11

Compression:

Stored size: 599 Bytes

Contents

require_dependency "renalware"
require_dependency "renalware/letters/author"

module Renalware
  module Letters
    def self.table_name_prefix
      "letter_"
    end

    def self.cast_author(user)
      ActiveType.cast(user, Author)
    end

    def self.cast_typist(user)
      ActiveType.cast(user, Typist)
    end

    def self.cast_patient(patient)
      ActiveType.cast(patient, ::Renalware::Letters::Patient)
    end

    def self.cast_primary_care_physician(primary_care_physician)
      ActiveType.cast(primary_care_physician, ::Renalware::Letters::PrimaryCarePhysician)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc3 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.rc1 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.beta12 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.beta11 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.beta10 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.beta9 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.beta8 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.beta7 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.beta6 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.beta5 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.beta4 app/models/renalware/letters.rb