Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Only monkey patch the Tempfile if it's not jRuby (RUBY_PLATFORM =~ /j…
Browse files Browse the repository at this point in the history
…ava/)

Closes #100
  • Loading branch information
sikachu committed Jun 29, 2011
1 parent 32dbcc0 commit 30c6dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/iostream.rb
Expand Up @@ -30,7 +30,7 @@ def stream_to object, path_or_file, in_blocks_of = 8192
end

# Corrects a bug in Windows when asking for Tempfile size.
if defined? Tempfile
if defined?(Tempfile) && RUBY_PLATFORM !~ /java/
class Tempfile
def size
if @tmpfile
Expand Down

0 comments on commit 30c6dc5

Please sign in to comment.