Sha256: 9176a2a9593b673e06cba01c3c0620d9870cef3647b06f5b5521ff2a4c11d39f

Contents?: true

Size: 780 Bytes

Versions: 5

Compression:

Stored size: 780 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    module Admin
      # Controller that allows managing all the attachment collections for
      # a participatory process.
      #
      class ParticipatoryProcessAttachmentCollectionsController < Decidim::Admin::ApplicationController
        include Decidim::Admin::Concerns::HasAttachmentCollections
        include Concerns::ParticipatoryProcessAdmin

        def after_destroy_path
          participatory_process_attachment_collections_path(current_participatory_process)
        end

        def collection_for
          current_participatory_process
        end

        def authorization_object
          @attachment_collection || AttachmentCollection
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.11.2 app/controllers/decidim/participatory_processes/admin/participatory_process_attachment_collections_controller.rb
decidim-participatory_processes-0.11.1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachment_collections_controller.rb
decidim-participatory_processes-0.11.0.pre1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachment_collections_controller.rb
decidim-participatory_processes-0.10.1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachment_collections_controller.rb
decidim-participatory_processes-0.10.0 app/controllers/decidim/participatory_processes/admin/participatory_process_attachment_collections_controller.rb