Class: Decidim::AvatarUploader
- Inherits:
-
ImageUploader
- Object
- CarrierWave::Uploader::Base
- ApplicationUploader
- ImageUploader
- Decidim::AvatarUploader
- 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, #dimensions_info, #extension_whitelist, #manipulate!, #max_image_height_or_width, #strip, #validate_dimensions, #validate_size
Methods inherited from ApplicationUploader
#skip_ssrf_protection?, #store_dir
Instance Method Details
#default_multiuser_url ⇒ Object
24 25 26 |
# File 'app/uploaders/decidim/avatar_uploader.rb', line 24 def default_multiuser_url(*) ActionController::Base.helpers.asset_path("decidim/avatar-multiuser.png") end |
#default_url ⇒ Object
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 |