mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Remove WickedPdf monkey-patch on ActionController#render
This commit is contained in:
committed by
Jean-Baptiste Bellet
parent
453328a97e
commit
18881180ae
@@ -3,3 +3,11 @@ WickedPdf.config = {
|
||||
#: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
|
||||
|
||||
Reference in New Issue
Block a user