add pdf generation

This commit is contained in:
Alex Turchyn
2023-05-28 23:20:48 +03:00
parent 170cb1ecea
commit 6a41f82e5b
21 changed files with 383 additions and 49 deletions
+15
View File
@@ -0,0 +1,15 @@
# frozen_string_literal: true
module PdfIcons
PATH = Rails.root.join('lib/pdf_icons')
module_function
def check_io
@check_io ||= StringIO.new(PATH.join('check.png').read)
end
def paperclip_io
@paperclip_io ||= StringIO.new(PATH.join('paperclip.png').read)
end
end