From 5489d09fa3ba3c4e17665c22d45bc2b1a3334515 Mon Sep 17 00:00:00 2001 From: Nikolay Gagarinov Date: Fri, 2 Aug 2024 17:13:35 +0500 Subject: [PATCH] fix deprecated --- config/initializers/wicked_pdf.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/initializers/wicked_pdf.rb b/config/initializers/wicked_pdf.rb index 6ff421ec5..1b395eb01 100644 --- a/config/initializers/wicked_pdf.rb +++ b/config/initializers/wicked_pdf.rb @@ -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) @@ -26,4 +26,4 @@ # 'xvfb-run' command, in order to simulate an X server. # # use_xvfb: true, -} +end