add pdf generation

This commit is contained in:
Alex Turchyn committed 2023-06-01 00:01:11 +03:00
1 parent 170cb1ecea
commit 6a41f82e5b
21 files changed
+383 -49

No files matched your search

+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