From efe4bafdf95d2d94ad62434885fc3fd0e9dee204 Mon Sep 17 00:00:00 2001 From: Michael Gaganov Date: Wed, 3 Feb 2021 14:26:35 +0300 Subject: [PATCH] render_to_string fix: pass options only to the render_to_string_with_wicked_pdf --- lib/wicked_pdf/pdf_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wicked_pdf/pdf_helper.rb b/lib/wicked_pdf/pdf_helper.rb index 404e5f95..bc0ac7c5 100644 --- a/lib/wicked_pdf/pdf_helper.rb +++ b/lib/wicked_pdf/pdf_helper.rb @@ -22,7 +22,7 @@ def render(*args) def render_to_string(*args) options = args.first if options.is_a?(Hash) && options.key?(:pdf) - render_to_string_with_wicked_pdf(options, *args, &block) + render_to_string_with_wicked_pdf(options) else super end