Skip to content

Commit

Permalink
Fix missing data on with image.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Crossland committed May 3, 2014
1 parent 712534b commit 0d03f84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/technoweenie/attachment_fu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,11 @@ def create_temp_file() end
# end
#
def with_image(&block)
# Write out the temporary data if it is not present
if temp_data.nil?
self.temp_data = current_data
end

self.class.with_image(temp_path, &block)
end

Expand Down

0 comments on commit 0d03f84

Please sign in to comment.