rename to templates

This commit is contained in:
Alex Turchyn committed 2023-06-01 00:01:15 +03:00
1 parent 98fc9d964a
commit 4a303cb423
59 files changed
+248 -264

No files matched your search

@@ -1,18 +1,18 @@
# frozen_string_literal: true
class SubmissionsDebugController < ApplicationController
layout 'flow'
layout 'form'
skip_before_action :authenticate_user!
def index
@submission = Submission.preload({ attachments_attachments: :blob },
flow: { documents_attachments: :blob })
template: { documents_attachments: :blob })
.find_by(slug: params[:submission_slug])
respond_to do |f|
f.html do
render 'submit_flow/show'
render 'submit_template/show'
end
f.pdf do
Submissions::GenerateResultAttachments.call(@submission)