Sha256: 574ed5847af7ec33f8c426cf1dfba25f084f3dfb0d4ba0f282eaaaeedc34939f
Contents?: true
Size: 427 Bytes
Versions: 19
Compression:
Stored size: 427 Bytes
Contents
require_dependency "renalware/letters/letter" module Renalware module Letters class Letter::Draft < Letter def self.policy_class DraftLetterPolicy end def revise(params) params = LetterParamsProcessor.new(patient).call(params) self.attributes = params end def submit(by:) becomes!(PendingReview).tap { |letter| letter.by = by } end end end end
Version data entries
19 entries across 19 versions & 1 rubygems