mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
store multiple submitter results
This commit is contained in:
1 parent
279409ad41
commit
28429c1167
36 files changed
+391
-241
No files matched your search
@@ -6,16 +6,16 @@ class SubmissionsDebugController < ApplicationController
|
||||
skip_before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
@submission = Submission.preload({ attachments_attachments: :blob },
|
||||
template: { documents_attachments: :blob })
|
||||
.find_by(slug: params[:submission_slug])
|
||||
@submitter = Submitter.preload({ attachments_attachments: :blob },
|
||||
submission: { template: { documents_attachments: :blob } })
|
||||
.find_by(slug: params[:submitter_slug])
|
||||
|
||||
respond_to do |f|
|
||||
f.html do
|
||||
render 'submit_template/show'
|
||||
end
|
||||
f.pdf do
|
||||
Submissions::GenerateResultAttachments.call(@submission)
|
||||
Submissions::GenerateResultAttachments.call(@submitter.submission)
|
||||
|
||||
send_data ActiveStorage::Attachment.where(name: :documents).last.download,
|
||||
filename: 'debug.pdf',
|
||||
|
||||
Reference in new issue
Block a user