Class: Decidim::AvatarUploader

Inherits:
ImageUploader show all
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_allowlist, #dimensions_info, #extension_allowlist, #max_image_height_or_width, #strip, #validate_dimensions, #validate_size

Methods inherited from ApplicationUploader

#downloader, #manipulate!, #provider, #store_dir

Instance Method Details

#default_multiuser_urlObject


24
25
26
# File 'decidim-core/app/uploaders/decidim/avatar_uploader.rb', line 24

def default_multiuser_url(*)
  ActionController::Base.helpers.asset_pack_path("media/images/avatar-multiuser.png")
end

#default_urlObject


20
21
22
# File 'decidim-core/app/uploaders/decidim/avatar_uploader.rb', line 20

def default_url(*)
  ActionController::Base.helpers.asset_pack_path("media/images/default-avatar.svg")
end