Skip to content

Commit

Permalink
Avoid FileUpload dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
stain committed Jun 25, 2014
1 parent fbc3f84 commit ed38fd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/t2flow/workflowprocessor.rb
Expand Up @@ -172,8 +172,8 @@ def get_preview_image
i.close(false)

img = StringIO.new(`dot -Tpng #{i.path}`)
img.extend FileUpload
img.original_filename = "#{filename}.png"
#img.extend FileUpload
#img.original_filename = "#{filename}.png"
img.content_type = "image/png"

img
Expand All @@ -190,8 +190,8 @@ def get_preview_svg
i.close(false)

svg = StringIO.new(`dot -Tsvg #{i.path}`)
svg.extend FileUpload
svg.original_filename = "#{filename}.svg"
#svg.extend FileUpload
#svg.original_filename = "#{filename}.svg"
svg.content_type = "image/svg+xml"

svg
Expand Down

0 comments on commit ed38fd1

Please sign in to comment.