Remove WickedPdf monkey-patch on ActionController#render

This commit is contained in:
Matt-Yorkley
2021-03-31 17:29:58 +01:00
committed by Jean-Baptiste Bellet
parent 453328a97e
commit 18881180ae

View File

@@ -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