refactor and fixes

This commit is contained in:
Alex Turchyn
2023-08-19 21:05:54 +03:00
parent 077c55f7e8
commit 46f350217a
18 changed files with 297 additions and 95 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class TemplatesController < ApplicationController
end
def edit
@template = current_account.templates.preload(documents_attachments: { preview_images_attachments: :blob })
@template = current_account.templates.preload(schema_documents: { preview_images_attachments: :blob })
.find(params[:id])
render :edit, layout: 'plain'