Module: Decidim::HasAttachments

Overview

A concern with the components needed when you want a model to be able to create links from it to another resource.

Instance Method Summary collapse

Instance Method Details

#attachment_contextObject

Attachment context for the file uploaders checks (e.g. which kind of files the user is allowed to upload in this context).

Override this in the model class if it is for a different context.

Returns a Symbol.


53
54
55
# File 'decidim-core/lib/decidim/has_attachments.rb', line 53

def attachment_context
  :participant
end