Module: Decidim::HasUploadValidations
- Extended by:
- ActiveSupport::Concern
- Included in:
- AccountForm, Attachment, AttachmentForm, Authorization, OAuthApplication, Organization, UserBaseEntity, UserGroupForm
- Defined in:
- lib/decidim/has_upload_validations.rb
Instance Method Summary collapse
Instance Method Details
#maximum_avatar_size ⇒ Object
32 33 34 |
# File 'lib/decidim/has_upload_validations.rb', line 32 def maximum_avatar_size Decidim.organization_settings(organization).upload_maximum_file_size_avatar end |
#maximum_upload_size ⇒ Object
28 29 30 |
# File 'lib/decidim/has_upload_validations.rb', line 28 def maximum_upload_size Decidim.organization_settings(organization).upload_maximum_file_size end |