synchronize documents generation

This commit is contained in:
Alex Turchyn
2023-07-01 13:16:07 +03:00
parent e55b5b47cd
commit 4180d02a1b
15 changed files with 148 additions and 12 deletions
+2
View File
@@ -39,6 +39,8 @@ class Submitter < ApplicationRecord
has_many_attached :documents
has_many_attached :attachments
has_many :document_generation_events, dependent: :destroy
def status
if completed_at?
'completed'