mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
add submission status filters
This commit is contained in:
1 parent
b6d350ebbd
commit
9da7463657
6 files changed
+61
-5
No files matched your search
@@ -48,6 +48,8 @@ class Submission < ApplicationRecord
|
||||
through: :template, source: :documents_attachments
|
||||
|
||||
scope :active, -> { where(deleted_at: nil) }
|
||||
scope :pending, -> { joins(:submitters).where(submitters: { completed_at: nil }).distinct }
|
||||
scope :completed, -> { left_joins(:submitters).where.not(submitters: { completed_at: nil }).distinct }
|
||||
|
||||
enum :source, {
|
||||
invite: 'invite',
|
||||
|
||||
Reference in new issue
Block a user