Module: Decidim::HasAttachments

Extended by:
ActiveSupport::Concern
Defined in:
lib/decidim/has_attachments.rb

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.



60
61
62
# File 'lib/decidim/has_attachments.rb', line 60

def attachment_context
  :participant
end