mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
9 lines
276 B
Ruby
9 lines
276 B
Ruby
# frozen_string_literal: true
|
|
|
|
WickedPdf.config ||= {}
|
|
|
|
ENV['PATH'].split(':').each do |path|
|
|
exe_path = File.join(path, 'wkhtmltopdf')
|
|
WickedPdf.config[:exe_path] = File.join(path, 'wkhtmltopdf') if File.file?(exe_path)
|
|
WickedPdf.config[:allow] = Rails.public_path
|
|
end
|