mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 07:22:32 -05:00
optimize for large files
This commit is contained in:
1 parent
c639a3f733
commit
ce39494f84
19 files changed
+206
-32
No files matched your search
@@ -30,6 +30,14 @@ class TemplatesController < ApplicationController
|
||||
associations: [schema_documents: { preview_images_attachments: :blob }]
|
||||
).call
|
||||
|
||||
@template_data =
|
||||
@template.as_json.merge(
|
||||
documents: @template.schema_documents.as_json(
|
||||
methods: [:metadata],
|
||||
include: { preview_images: { methods: %i[url metadata filename] } }
|
||||
)
|
||||
).to_json
|
||||
|
||||
render :edit, layout: 'plain'
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user