forked from jasder/forgeplus
5 lines
130 B
Ruby
5 lines
130 B
Ruby
|
module PdfkitHelper
|
||
|
def download_image(url)
|
||
|
'data:image/png;base64,' + Base64.encode64(open(url) { |io| io.read })
|
||
|
end
|
||
|
end
|