Module: Decidim::Admin::Concerns::HasAttachments
- Extended by:
- ActiveSupport::Concern
- Included in:
- Decidim::Accountability::Admin::AttachmentsController, Decidim::Assemblies::Admin::AssemblyAttachmentsController, Blogs::Admin::AttachmentsController, Budgets::Admin::AttachmentsController, Conferences::Admin::ConferenceAttachmentsController, Initiatives::Admin::InitiativeAttachmentsController, Meetings::Admin::AttachmentsController, ParticipatoryProcesses::Admin::ParticipatoryProcessAttachmentsController, Votings::Admin::VotingAttachmentsController
- Defined in:
- decidim-admin/app/controllers/decidim/admin/concerns/has_attachments.rb
Overview
Attachments can be related to any class in Decidim, in order to manage the attachments for a given type, you should create a new controller and include this concern.
The only requirement is to define a ‘attached_to` method that returns an instance of the model to attach the attachment to.