mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
remove debug
This commit is contained in:
1 parent
a8f5d5cea7
commit
8c19f90e88
1 file changed
+1
-3
@@ -10,15 +10,13 @@ module Templates
|
||||
module_function
|
||||
|
||||
def call(template, params)
|
||||
res = Array.wrap(params[:files].presence || params[:file]).map do |file|
|
||||
Array.wrap(params[:files].presence || params[:file]).map do |file|
|
||||
if file.content_type.exclude?('image') && file.content_type != PDF_CONTENT_TYPE
|
||||
next handle_file_types(template, file, params)
|
||||
end
|
||||
|
||||
handle_pdf_or_image(template, file, file.read, params)
|
||||
end
|
||||
Rails.logger.debug res
|
||||
res
|
||||
end
|
||||
|
||||
def handle_pdf_or_image(template, file, document_data = nil, params = {})
|
||||
|
||||
Reference in new issue
Block a user