Class: Decidim::AvatarUploader

Inherits:
ImageUploader show all
Defined in:
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, #extension_white_list, #max_image_height_or_width, #strip, #validate_dimensions, #validate_size

Methods inherited from ApplicationUploader

#store_dir

Instance Method Details

#default_urlObject



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

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