Sha256: efdf9d1c72b1ddd292ef31dcadf703e123008f932aba43c021e496f24d7dca85
Contents?: true
Size: 646 Bytes
Versions: 4
Compression:
Stored size: 646 Bytes
Contents
# frozen_string_literal: true module Decidim module Initiatives module Admin # Controller that allows managing all the attachments for an initiative class InitiativeAttachmentsController < Decidim::Admin::ApplicationController include InitiativeAdmin include Decidim::Admin::Concerns::HasAttachments def after_destroy_path initiative_attachments_path(current_initiative) end def attached_to current_initiative end def authorization_object collection.find_by(id: params[:id]) || Decidim::Attachment end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems