mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
update submission templates
This commit is contained in:
1 parent
b0b4386927
commit
5d6b5ab6d7
10 files changed
+364
-77
No files matched your search
@@ -42,4 +42,16 @@ class Submission < ApplicationRecord
|
||||
has_many_attached :attachments
|
||||
|
||||
scope :active, -> { where(deleted_at: nil) }
|
||||
|
||||
def status
|
||||
if completed_at?
|
||||
'completed'
|
||||
elsif opened_at?
|
||||
'opened'
|
||||
elsif sent_at?
|
||||
'sent'
|
||||
else
|
||||
'awaiting'
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user