Skip to content

Commit

Permalink
Fix temp file name
Browse files Browse the repository at this point in the history
  • Loading branch information
doz committed Jun 6, 2012
1 parent 2840021 commit c974f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wisepdf/render.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def prerender_header_and_footer(arguments)
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'], 'tmp') )
opts[:layout] ||= arguments[:layout]

tf.write render_to_string(:template => opts[:template], :layout => opts[:layout], :locals => opts[:locals])
Expand Down

0 comments on commit c974f44

Please sign in to comment.