Class: Blacksand::ImageUploader

Inherits:
BaseUploader
  • Object
show all
Defined in:
app/uploaders/blacksand/image_uploader.rb

Instance Method Summary collapse

Methods inherited from BaseUploader

storage_from_config, #store_dir

Instance Method Details

#extension_white_listObject

Add a white list of extensions which are allowed to be uploaded. For images you might use something like this:



67
68
69
# File 'app/uploaders/blacksand/image_uploader.rb', line 67

def extension_white_list
  %w(jpg jpeg gif png)
end