mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
rename deleted_at to archived_at
This commit is contained in:
1 parent
cfb1bdcd52
commit
6d7d8ae87c
24 files changed
+71
-65
No files matched your search
@@ -32,7 +32,7 @@ class SubmitFormController < ApplicationController
|
||||
|
||||
cookies[:submitter_sid] = @submitter.signed_id
|
||||
|
||||
render @submitter.submission.template.deleted_at? ? :archived : :show
|
||||
render @submitter.submission.template.archived_at? ? :archived : :show
|
||||
end
|
||||
|
||||
def update
|
||||
@@ -42,7 +42,7 @@ class SubmitFormController < ApplicationController
|
||||
return render json: { error: 'Form has been completed already.' }, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
if submitter.template.deleted_at? || submitter.submission.deleted_at?
|
||||
if submitter.template.archived_at? || submitter.submission.archived_at?
|
||||
Rollbar.info("Archived template: #{submitter.template.id}") if defined?(Rollbar)
|
||||
|
||||
return render json: { error: 'Form has been archived.' }, status: :unprocessable_entity
|
||||
|
||||
Reference in new issue
Block a user