lib/wisepdf/render.rb in wisepdf-1.2.3 vs lib/wisepdf/render.rb in wisepdf-1.2.4
- old
+ new
@@ -69,10 +69,10 @@
[:header, :footer].each do |hf|
if arguments[hf] && arguments[hf][:html] && arguments[hf][:html].is_a?(Hash)
opts = arguments[hf].delete(:html)
@hf_tempfiles = [] if ! defined?(@hf_tempfiles)
- @hf_tempfiles.push( tf = Tempfile.new("wisepdf_#{hf}_pdf", '.html') )
+ @hf_tempfiles.push( tf = Tempfile.new(["wisepdf_#{hf}_pdf", '.html']) )
opts[:layout] ||= arguments[:layout]
tf.write render_to_string(:template => opts[:template], :layout => opts[:layout], :locals => opts[:locals])
tf.flush
\ No newline at end of file