Skip to content

Commit

Permalink
fix deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
fey committed Aug 2, 2024
1 parent 4610287 commit 5489d09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/initializers/wicked_pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
#
# https://github.com/mileszs/wicked_pdf/blob/master/README.md

WickedPdf.config = {
WickedPdf.configure do |c|
# Path to the wkhtmltopdf executable: This usually isn't needed if using
# one of the wkhtmltopdf-binary family of gems.
# exe_path: '/usr/local/bin/wkhtmltopdf',
# or
exe_path: Gem.bin_path('wkhtmltopdf-binary', 'wkhtmltopdf')
c.exe_path = Gem.bin_path('wkhtmltopdf-binary', 'wkhtmltopdf')

# Layout file to be used for all PDFs
# (but can be overridden in `render :pdf` calls)
Expand All @@ -26,4 +26,4 @@
# 'xvfb-run' command, in order to simulate an X server.
#
# use_xvfb: true,
}
end

0 comments on commit 5489d09

Please sign in to comment.