Sha256: 80e7017d6906965c5138bcab2ffba0b9668af52eb5c54597d1977b91fdbc319c

Contents?: true

Size: 713 Bytes

Versions: 2

Compression:

Stored size: 713 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.feature, current_participatory_space)
        end

        def collection_for
          meeting
        end

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

        def authorization_object
          meeting.feature
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
decidim-meetings-0.10.1 app/controllers/decidim/meetings/admin/attachment_collections_controller.rb
decidim-meetings-0.10.0 app/controllers/decidim/meetings/admin/attachment_collections_controller.rb