Sha256: 7567e59a50707a3f842c08eb5c0643d1aa932f47a0f2e58f3dfad341cce70e23

Contents?: true

Size: 717 Bytes

Versions: 18

Compression:

Stored size: 717 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.id)
        end

        def attached_to
          current_participatory_process
        end

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

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
decidim-participatory_processes-0.6.8 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-0.6.8 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.6.7 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-0.6.7 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.6.6 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-0.6.6 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.6.5 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-0.6.5 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.6.4 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-0.6.4 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.6.3 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-0.6.3 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.6.2 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-0.6.2 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.6.1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-0.6.1 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.6.0 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-0.6.0 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb