Sha256: dea9c6d86a9e40a9c37c5ead621e0a8423c8400cf602c162b931a4c46498c123

Contents?: true

Size: 640 Bytes

Versions: 19

Compression:

Stored size: 640 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::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

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

Version data entries

19 entries across 19 versions & 1 rubygems

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