Skip to content

Commit

Permalink
fix wicked pdf for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fey committed Aug 2, 2024
1 parent 060f46c commit b7a2b93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/initializers/wicked_pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
# one of the wkhtmltopdf-binary family of gems.
# exe_path: '/usr/local/bin/wkhtmltopdf',
# or
c.exe_path = Gem.bin_path('wkhtmltopdf-heroku', 'wkhtmltopdf-binary', 'wkhtmltopdf')
#
bin_path = Rails.env.production? ? 'wkhtmltopdf-heroku' : 'wkhtmltopdf-binary'

c.exe_path = Gem.bin_path(bin_path, 'wkhtmltopdf')

# Layout file to be used for all PDFs
# (but can be overridden in `render :pdf` calls)
Expand Down

0 comments on commit b7a2b93

Please sign in to comment.