lib/pdfkit/configuration.rb in pdfkit-0.5.1 vs lib/pdfkit/configuration.rb in pdfkit-0.5.2
- old
+ new
@@ -15,10 +15,10 @@
:encoding => "UTF-8"
}
end
def wkhtmltopdf
- @wkhtmltopdf ||= (defined?(Bundler) ? `bundle exec which wkhtmltopdf` : `which wkhtmltopdf`).chomp
+ @wkhtmltopdf ||= (defined?(Bundler::GemfileError) ? `bundle exec which wkhtmltopdf` : `which wkhtmltopdf`).chomp
end
end
class << self
attr_accessor :configuration