Sha256: 35dc64b83098da9f3e49da32c063f8ab06b1ece05731309545b051989b65bcd2

Contents?: true

Size: 711 Bytes

Versions: 60

Compression:

Stored size: 711 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    module Admin
      # Controller that allows managing all the attachment collections for an conference.
      #
      class ConferenceAttachmentCollectionsController < Decidim::Conferences::Admin::ApplicationController
        include Concerns::ConferenceAdmin
        include Decidim::Admin::Concerns::HasAttachmentCollections

        def after_destroy_path
          conference_attachment_collections_path(current_conference)
        end

        def collection_for
          current_conference
        end

        def authorization_object
          @attachment_collection || AttachmentCollection
        end
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
decidim-conferences-0.23.3 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.23.2 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.23.1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.23.1.rc1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.23.0 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.22.0 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.21.0 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.20.1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.20.0 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.19.1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.18.1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.19.0 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.17.2 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.18.0 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.17.1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.16.1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.17.0 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.16.0 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.15.2 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.15.1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb