Skip to content

Commit

Permalink
Merge pull request #9 from doz/master
Browse files Browse the repository at this point in the history
Fix temp file name
  • Loading branch information
igor-alexandrov committed Jun 24, 2012
2 parents 2840021 + c974f44 commit 22b615a
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 22b615a

Please sign in to comment.