Sha256: 95d7308eaa55af275ecb290562dacefe1ec803a05ab71076cd33890c229bec6e

Contents?: true

Size: 717 Bytes

Versions: 10

Compression:

Stored size: 717 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    module Admin
      # Controller that allows managing all the attachment collections for an assembly.
      #
      class AttachmentCollectionsController < Admin::ApplicationController
        include Decidim::Admin::Concerns::HasAttachmentCollections

        def after_destroy_path
          meeting_attachment_collections_path(meeting, meeting.component, current_participatory_space)
        end

        def collection_for
          meeting
        end

        def meeting
          @meeting ||= meetings.find(params[:meeting_id])
        end

        def authorization_object
          meeting.component
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-meetings-0.13.1 app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
decidim-meetings-0.12.2 app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
decidim-meetings-0.13.0 app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
decidim-meetings-0.12.1 app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
decidim-meetings-0.13.0.pre1 app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
decidim-meetings-0.12.0 app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
decidim-meetings-0.11.2 app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
decidim-meetings-0.12.0.pre app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
decidim-meetings-0.11.1 app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
decidim-meetings-0.11.0.pre1 app/controllers/decidim/meetings/admin/attachment_collections_controller.rb