Skip to content

Commit

Permalink
Also apply Tempfile fix for JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
sikachu committed Jul 22, 2011
1 parent 1ad401a commit 0f7485f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/processor.rb
Expand Up @@ -41,7 +41,7 @@ def self.make file, options = {}, attachment = nil
# http://marsorange.com/archives/of-mogrify-ruby-tempfile-dynamic-class-definitions
class Tempfile < ::Tempfile
# This is Ruby 1.8.7's implementation.
if RUBY_VERSION <= "1.8.6"
if RUBY_VERSION <= "1.8.6" || RUBY_PLATFORM =~ /java/
def make_tmpname(basename, n)
case basename
when Array
Expand Down

0 comments on commit 0f7485f

Please sign in to comment.