Permalink
Browse files

Adding new file extensions to extension_white_list method in ImageUpl…

…oader class

Signed-off-by: Ramón Martínez Olvera <martinezo@udevelopper-viii.(none)>
  • Loading branch information...
1 parent 86369a1 commit 0db18fd21a7ab2f5dfa954b623c7649292723827 Deployer Unidad de Computo INB committed with Ramón Martínez Olvera Feb 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/uploaders/image_uploader.rb
@@ -4,7 +4,7 @@ class ImageUploader < CarrierWave::Uploader::Base
include CarrierWave::RMagick
storage :file
def extension_white_list
- %w(jpg jpeg gif png)
+ %w(jpg jpeg gif png bmp tif tiff)
end
# FIXME: Check for bugs in url method CarrierWave
# Don't try it at home!!!

0 comments on commit 0db18fd

Please sign in to comment.