Permalink
Browse files

Add hook in for Wisepdf.

  • Loading branch information...
simmogs committed Apr 17, 2012
1 parent b890573 commit fa60da323c1cc7cf705457da3af33d1b17f0c994
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/wkhtmltopdf-heroku.rb
@@ -15,3 +15,12 @@
WickedPdf.config[:exe_path] = WKHTMLTOPDF_PATH
rescue LoadError
end
+
+begin
+ require 'wisepdf'
+
+ Wisepdf::Configuration.configure do |config|
+ config.wkhtmltopdf = WKHTMLTOPDF_PATH
+ end
+rescue LoadError
+end

0 comments on commit fa60da3

Please sign in to comment.