Class: Decidim::Cw::AvatarUploader
- Inherits:
-
ImageUploader
- Object
- CarrierWave::Uploader::Base
- ApplicationUploader
- ImageUploader
- Decidim::Cw::AvatarUploader
- Defined in:
- app/uploaders/decidim/cw/avatar_uploader.rb
Overview
This class deals with uploading avatars to a User.
Instance Attribute Summary
Attributes inherited from ApplicationUploader
Instance Method Summary collapse
Methods inherited from ImageUploader
#content_type_allowlist, #dimensions_info, #extension_allowlist, #max_image_height_or_width, #strip, #validable_dimensions, #validate_dimensions, #validate_size
Methods inherited from ApplicationUploader
#downloader, #provider, set_variants, #store_dir, #variant, variants
Instance Method Details
#default_multiuser_url ⇒ Object
20 21 22 |
# File 'app/uploaders/decidim/cw/avatar_uploader.rb', line 20 def default_multiuser_url(*) ActionController::Base.helpers.asset_path("decidim/avatar-multiuser.png") end |
#default_url ⇒ Object
16 17 18 |
# File 'app/uploaders/decidim/cw/avatar_uploader.rb', line 16 def default_url(*) ActionController::Base.helpers.asset_path("decidim/default-avatar.svg") end |