Class: Decidim::AvatarUploader

Inherits:
ImageUploader show all
Includes:
CarrierWave::MiniMagick
Defined in:
decidim-core/app/uploaders/decidim/avatar_uploader.rb

Overview

This class deals with uploading avatars to a User.

Instance Method Summary collapse

Methods inherited from ImageUploader

#content_type_whitelist, #max_image_height_or_width, #validate_dimensions, #validate_size

Methods inherited from ApplicationUploader

#store_dir

Instance Method Details

#default_urlObject



18
19
20
# File 'decidim-core/app/uploaders/decidim/avatar_uploader.rb', line 18

def default_url(*)
  ActionController::Base.helpers.asset_path("decidim/default-avatar.svg")
end