Permalink
Browse files

Fixed 'type' being nil on Windows 7 error.

  • Loading branch information...
1 parent 65f4941 commit f450b4d33efdfc50a229d6303d24b47a53f6f0cf @simonjsmithuk committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/content_type_detector.rb
@@ -57,7 +57,7 @@ def type_from_file_command
SENSIBLE_DEFAULT
end
- if type.match(/\(.*?\)/)
+ if type.nil? || type.match(/\(.*?\)/)
type = SENSIBLE_DEFAULT
end
type.split(/[:;\s]+/)[0]

0 comments on commit f450b4d

Please sign in to comment.