Sha256: 0ad7ea85a07a81561a393eaa2004e43c27b0a834081a47245e2ae5cbd14d2e53

Contents?: true

Size: 628 Bytes

Versions: 17

Compression:

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

    module Delivery
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
renalware-core-2.0.8 app/models/renalware/letters.rb
renalware-core-2.0.7 app/models/renalware/letters.rb
renalware-core-2.0.5 app/models/renalware/letters.rb
renalware-core-2.0.4 app/models/renalware/letters.rb
renalware-core-2.0.3 app/models/renalware/letters.rb
renalware-core-2.0.2 app/models/renalware/letters.rb
renalware-core-2.0.1 app/models/renalware/letters.rb
renalware-core-2.0.0 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.rc13 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.rc11 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.rc10 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.rc9 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.rc8 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.rc7 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.rc6 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.rc5 app/models/renalware/letters.rb
renalware-core-2.0.0.pre.rc4 app/models/renalware/letters.rb