Sha256: 40c6079a574af9a7992bcaac501ce2cf29f0b5ce8d2093bed95458945bc4d974

Contents?: true

Size: 714 Bytes

Versions: 19

Compression:

Stored size: 714 Bytes

Contents

# frozen_string_literal: true

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

        def after_destroy_path
          participatory_process_attachments_path(current_participatory_process)
        end

        def attached_to
          current_participatory_process
        end

        def authorization_object
          @attachment || Attachment
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.11.2 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.11.1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.11.0.pre1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.10.1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.10.0 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.9.3 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.9.2 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.9.1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.9.0 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.8.4 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.8.3 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.8.2 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.8.1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.8.0 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.7.4 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.7.3 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.7.2 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.7.1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.7.0 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb