Files
openfoodnetwork/config/initializers/wicked_pdf.rb

14 lines
349 B
Ruby

WickedPdf.config = {
#:wkhtmltopdf => '/usr/local/bin/wkhtmltopdf',
#:layout => "pdf.html",
:exe_path => `bundle exec which wkhtmltopdf`.chomp
}
# A monkey-patch to remove WickedPdf's monkey-patch, as it clashes with ViewComponents.
class WickedPdf
module PdfHelper
remove_method(:render)
remove_method(:render_to_string)
end
end