Skip to content

Commit a240c8a

Browse files
committed
Workaround for wicked_pdf/view_component incompatibility
See mileszs/wicked_pdf#650 (comment) It seems that the incompatibility is caused by the `prepend` of `WickedPdf::PdfHelper` to `ActionController::Base`: https://github.com/mileszs/wicked_pdf/blob/0d96b8a73fb043490a0800fbdb896b453939f1f8/lib/wicked_pdf/railtie.rb#L12 `view_component` uses a similar, and presumably conflicting, technique: https://github.com/github/view_component/blob/a1635d48ace33103c05dfc96cc88442e4e663ab8/lib/view_component/engine.rb#L49-L51
1 parent 6def797 commit a240c8a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/initializers/wicked_pdf.rb

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class WickedPdf
2+
module PdfHelper
3+
remove_method(:render)
4+
end
5+
end

0 commit comments

Comments
 (0)