Skip to content

Commit

Permalink
add :prefixes to render_opts which is necessary when using AC::Renderers
Browse files Browse the repository at this point in the history
  • Loading branch information
adzap committed Apr 1, 2019
1 parent f09d5d1 commit 78197e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/wicked_pdf/renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def set_basic_auth(options = {})
def make_pdf(options = {})
render_opts = {
:template => options[:template],
:prefixes => options[:prefixes],
:layout => options[:layout],
:formats => options[:formats],
:handlers => options[:handlers],
Expand All @@ -55,6 +56,7 @@ def make_and_send_pdf(pdf_name, options = {})
if options[:show_as_html]
render_opts = {
:template => options[:template],
:prefixes => options[:prefixes],
:layout => options[:layout],
:formats => options[:formats],
:handlers => options[:handlers],
Expand Down

0 comments on commit 78197e8

Please sign in to comment.