adjust conditions

This commit is contained in:
Pete Matsyburka
2025-05-11 16:11:02 +03:00
parent 544306eac4
commit 34433c0575
12 changed files with 35 additions and 35 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class Submitter < ApplicationRecord
has_many_attached :documents
has_many_attached :attachments
has_many_attached :preview_documents
has_many :template_accesses, through: :template
has_many :template_accesses, through: :submission
has_many :email_events, as: :emailable, dependent: (Docuseal.multitenant? ? nil : :destroy)
has_many :document_generation_events, dependent: :destroy