Module: Decidim::HasUploadValidations

Instance Method Summary collapse

Instance Method Details

#maximum_avatar_sizeObject


32
33
34
# File 'decidim-core/lib/decidim/has_upload_validations.rb', line 32

def maximum_avatar_size
  Decidim.organization_settings(organization).upload_maximum_file_size_avatar
end

#maximum_upload_sizeObject


28
29
30
# File 'decidim-core/lib/decidim/has_upload_validations.rb', line 28

def maximum_upload_size
  Decidim.organization_settings(organization).upload_maximum_file_size
end