Module: Decidim::Admin::Concerns::HasAttachmentCollections
- Extended by:
- ActiveSupport::Concern
- Included in:
- Decidim::Accountability::Admin::AttachmentCollectionsController, Decidim::Assemblies::Admin::AssemblyAttachmentCollectionsController, Blogs::Admin::AttachmentCollectionsController, Budgets::Admin::AttachmentCollectionsController, Conferences::Admin::ConferenceAttachmentCollectionsController, Meetings::Admin::AttachmentCollectionsController, ParticipatoryProcesses::Admin::ParticipatoryProcessAttachmentCollectionsController, Votings::Admin::VotingAttachmentCollectionsController
- Defined in:
- decidim-admin/app/controllers/decidim/admin/concerns/has_attachment_collections.rb
Overview
Attachment collections can be related to an attachment, in order to manage the attachment collections for a given type, you should create a new controller and include this concern.
The only requirement is to define a ‘collection_for` method that returns an instance of the model that will hold the attachment collection.