Class: PictureUploader

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

Instance Attribute Summary

Attributes inherited from AbAdmin::CarrierWave::BaseUploader

#internal_identifier

Instance Method Summary collapse

Methods inherited from AbAdmin::CarrierWave::BaseUploader

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

Methods included from AbAdmin::Utils::EvalHelpers

#call_method_or_proc_on, #evaluate_method

Instance Method Details

#extension_whitelistObject


10
11
12
# File 'lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb', line 10

def extension_whitelist
  %w(jpg jpeg gif png)
end