Class: AttachmentFileUploader

Inherits:
Sunrise::CarrierWave::BaseUploader show all
Defined in:
lib/generators/sunrise/templates/uploaders/attachment_file_uploader.rb

Instance Method Summary collapse

Methods inherited from Sunrise::CarrierWave::BaseUploader

#default_url, #image?, #quality, #set_content_type, #set_size, #set_width_and_height, #store_dir, #strip

Instance Method Details

#extension_white_listObject



2
3
4
# File 'lib/generators/sunrise/templates/uploaders/attachment_file_uploader.rb', line 2

def extension_white_list
  %w(pdf doc docx xls xlsx ppt pptx zip rar csv)
end