mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
14 lines
349 B
Ruby
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
|