lib/wicked_pdf/tempfile.rb in wicked_pdf-0.11.0 vs lib/wicked_pdf/tempfile.rb in wicked_pdf-1.0.0

- old
+ new

@@ -1,11 +1,11 @@ require 'tempfile' class WickedPdfTempfile < Tempfile # ensures the Tempfile's filename always keeps its extension - def initialize(filename, temp_dir=nil) + def initialize(filename, temp_dir = nil) temp_dir ||= Dir.tmpdir extension = File.extname(filename) basename = File.basename(filename, extension) super([basename, extension], temp_dir) end -end \ No newline at end of file +end