Browse files

ruby1.9 incompatible case format

  • Loading branch information...
1 parent 33d6cbc commit f9b4e05524325e384fbd8976f844d5215f9be012 @toy committed Feb 4, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/upload_column.rb
View
6 lib/upload_column.rb
@@ -279,11 +279,11 @@ def filename_extension
def mime_type
return @mime_type if @mime_type
case filename_extension
- when "jpg":
+ when "jpg"
return "image/jpeg"
- when "gif":
+ when "gif"
return "image/gif"
- when "png":
+ when "png"
return "image/png"
else
@mime_type = MIME_EXTENSIONS.invert[filename_extension]

0 comments on commit f9b4e05

Please sign in to comment.