mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
adjust submitter edit
This commit is contained in:
1 parent
e0a297cf81
commit
d6474f0e6e
8 files changed
+105
-101
No files matched your search
@@ -56,6 +56,8 @@ class Submitter < ApplicationRecord
|
||||
|
||||
has_many :document_generation_events, dependent: :destroy
|
||||
has_many :submission_events, dependent: :destroy
|
||||
has_many :start_form_submission_events, -> { where(event_type: :start_form) },
|
||||
class_name: 'SubmissionEvent', dependent: :destroy, inverse_of: :submitter
|
||||
|
||||
scope :completed, -> { where.not(completed_at: nil) }
|
||||
|
||||
|
||||
Reference in new issue
Block a user