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