Sha256: dc2898d3026282b568c6e60978391d9886098a34ba5d42a0cc275fda2f32dc87

Contents?: true

Size: 570 Bytes

Versions: 65

Compression:

Stored size: 570 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    module Admin
      # Controller that allows managing all the attachments for a participatory
      # assembly.
      #
      class AssemblyAttachmentsController < Decidim::Assemblies::Admin::ApplicationController
        include Concerns::AssemblyAdmin
        include Decidim::Admin::Concerns::HasAttachments

        def after_destroy_path
          assembly_attachments_path(current_assembly)
        end

        def attached_to
          current_assembly
        end
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
decidim-assemblies-0.15.0 app/controllers/decidim/assemblies/admin/assembly_attachments_controller.rb
decidim-assemblies-0.14.4 app/controllers/decidim/assemblies/admin/assembly_attachments_controller.rb
decidim-assemblies-0.14.3 app/controllers/decidim/assemblies/admin/assembly_attachments_controller.rb
decidim-assemblies-0.14.2 app/controllers/decidim/assemblies/admin/assembly_attachments_controller.rb
decidim-assemblies-0.14.1 app/controllers/decidim/assemblies/admin/assembly_attachments_controller.rb