Sha256: 9df98c400bf0638e2cc95686f8a3f8b7ae144263c311229c48dbc42d481279cd

Contents?: true

Size: 654 Bytes

Versions: 8

Compression:

Stored size: 654 Bytes

Contents

# frozen_string_literal: true

require_dependency "decidim/admin/application_controller"

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

      def after_destroy_path
        participatory_process_attachments_path(participatory_process.id)
      end

      def attached_to
        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.4.0 app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-0.4.0 decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-admin-0.3.2 app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-0.3.2 decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-admin-0.3.1 app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-0.3.1 decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-admin-0.3.0 app/controllers/decidim/admin/participatory_process_attachments_controller.rb
decidim-0.3.0 decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb