Sha256: f75032c1304148230726027fa0991c48397bd9bc86ca59cba946e1e8f664ea82

Contents?: true

Size: 780 Bytes

Versions: 13

Compression:

Stored size: 780 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
        include Decidim::Admin::Concerns::HasTabbedMenu

        def after_destroy_path
          participatory_process_attachments_path(current_participatory_process)
        end

        def attached_to
          current_participatory_process
        end

        private

        def tab_menu_name = :participatory_process_admin_attachments_menu
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.29.1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.28.4 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.29.0 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.28.3 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.29.0.rc4 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.29.0.rc3 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.29.0.rc2 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.29.0.rc1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.28.2 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.28.1 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.28.0 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.28.0.rc5 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb
decidim-participatory_processes-0.28.0.rc4 app/controllers/decidim/participatory_processes/admin/participatory_process_attachments_controller.rb