# frozen_string_literal: true module Decidim module Assemblies module Admin # Controller that allows managing all the attachments for a participatory # assembly. # class AssemblyAttachmentsController < Decidim::Admin::ApplicationController include Concerns::AssemblyAdmin include Decidim::Admin::Concerns::HasAttachments def after_destroy_path assembly_attachments_path(current_assembly.id) end def attached_to current_assembly end def authorization_object @attachment || Attachment end end end end end