Skip to content

Commit

Permalink
ruby1.9 incompatible case format
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Feb 4, 2010
1 parent 33d6cbc commit f9b4e05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/upload_column.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ def filename_extension
def mime_type def mime_type
return @mime_type if @mime_type return @mime_type if @mime_type
case filename_extension case filename_extension
when "jpg": when "jpg"
return "image/jpeg" return "image/jpeg"
when "gif": when "gif"
return "image/gif" return "image/gif"
when "png": when "png"
return "image/png" return "image/png"
else else
@mime_type = MIME_EXTENSIONS.invert[filename_extension] @mime_type = MIME_EXTENSIONS.invert[filename_extension]
Expand Down

0 comments on commit f9b4e05

Please sign in to comment.