Sha256: f39689d4e645f9ba9c146c2df47514f6eae6a768412cae937f6704e9d014cf47

Contents?: true

Size: 643 Bytes

Versions: 18

Compression:

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

        def attached_to
          current_assembly
        end

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

Version data entries

18 entries across 18 versions & 2 rubygems

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