Skip to content

Commit

Permalink
Merge pull request #962 from cbmike/render_to_string-fix
Browse files Browse the repository at this point in the history
render_to_string fix
  • Loading branch information
unixmonkey authored May 4, 2022
2 parents 50b30a9 + efe4baf commit 5a6ee89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wicked_pdf/pdf_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a6ee89

Please sign in to comment.