Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prevent error coercing nil -> Integer by explicit conversion.

  • Loading branch information...
commit 1bcfc14388d0651c5fc70ab9ca3511144c698903 1 parent a3f7b1b
@jyurek jyurek authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/paperclip/processor.rb
View
2  lib/paperclip/processor.rb
@@ -43,7 +43,7 @@ class Tempfile < ::Tempfile
# Replaces Tempfile's +make_tmpname+ with one that honors file extensions.
def make_tmpname(basename, n)
extension = File.extname(basename)
- sprintf("%s,%d,%d%s", File.basename(basename, extension), $$, n, extension)
+ sprintf("%s,%d,%d%s", File.basename(basename, extension), $$, n.to_i, extension)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.