Commit 6f2ca932 by simonjsmithuk Committed by Jon Yurek

Fixed 'type' being nil on Windows 7 error.

parent ad45c0f0
...@@ -57,7 +57,7 @@ module Paperclip ...@@ -57,7 +57,7 @@ module Paperclip
SENSIBLE_DEFAULT SENSIBLE_DEFAULT
end end
if type.match(/\(.*?\)/) if type.nil? || type.match(/\(.*?\)/)
type = SENSIBLE_DEFAULT type = SENSIBLE_DEFAULT
end end
type.split(/[:;\s]+/)[0] type.split(/[:;\s]+/)[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment