Sha256: bd917417ce9576d26e95e5e323aeedda4713b0fc4a7c2d4358636d8dca37771c

Contents?: true

Size: 627 Bytes

Versions: 8

Compression:

Stored size: 627 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # Controller that allows managing all the attachments for a participatory
    # process.
    #
    class ParticipatoryProcessAttachmentsController < Decidim::Admin::ApplicationController
      include Concerns::ParticipatoryProcessAdmin
      include Concerns::HasAttachments

      def after_destroy_path
        participatory_process_attachments_path(current_participatory_process.id)
      end

      def attached_to
        current_participatory_process
      end

      def authorization_object
        @attachment || Attachment
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
decidim-admin-0.5.1 app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-0.5.1 decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-admin-0.5.0 app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-0.5.0 decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-admin-0.4.4 app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-0.4.4 decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-admin-0.4.3 app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-0.4.3 decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb