Class: AttachmentFileUploader

Inherits:
AbAdmin::CarrierWave::BaseUploader show all
Defined in:
lib/generators/ab_admin/install/templates/uploaders/attachment_file_uploader.rb

Instance Attribute Summary

Attributes inherited from AbAdmin::CarrierWave::BaseUploader

#internal_identifier

Instance Method Summary collapse

Methods inherited from AbAdmin::CarrierWave::BaseUploader

#cropper, #default_url, #dimensions, #filename, #full_filename, #full_original_filename, #image?, #magick, #normalize_filename, #quality, #rename_via_move, #rotate, #save_original_name, #secure_token, #store_dir, #store_model_filename, #strip, #watermark

Methods included from AbAdmin::Utils::EvalHelpers

#call_method_or_proc_on, #evaluate_method

Instance Method Details

#extension_white_listObject



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

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