lib/pdfkit/pdfkit.rb in pdfkit-0.8.7.2 vs lib/pdfkit/pdfkit.rb in pdfkit-0.8.7.3
- old
+ new
@@ -47,10 +47,10 @@
def command(path = nil)
args = [*executable]
args.concat(@renderer.options_for_command)
args << @source.to_input_for_command
- args << (path ? path : '-')
+ args << (path ? path.to_s : '-')
args
end
def options
# TODO(cdwort,sigmavirus24): Replace this with an attr_reader for @renderer instead in 1.0.0