mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23:42:32 -05:00
adjust view only
This commit is contained in:
1 parent
a29e09ed2f
commit
28168f082d
14 files changed
+60
-43
No files matched your search
@@ -92,9 +92,8 @@ class Submission < ApplicationRecord
|
||||
|
||||
scope :active, -> { where(archived_at: nil) }
|
||||
scope :archived, -> { where.not(archived_at: nil) }
|
||||
scope :pending, lambda {
|
||||
where(expire_at: nil).or(where(expire_at: Time.current..)).where(completed_at: nil)
|
||||
}
|
||||
scope :non_expired, -> { where(expire_at: nil).or(where(expire_at: Time.current..)) }
|
||||
scope :pending, -> { non_expired.where(completed_at: nil) }
|
||||
scope :completed, -> { where.not(completed_at: nil) }
|
||||
scope :declined, lambda {
|
||||
where(Submitter.where(Submitter.arel_table[:submission_id].eq(Submission.arel_table[:id]))
|
||||
|
||||
Reference in new issue
Block a user