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.27.9 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.27.8 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.27.7 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.27.6 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.26.10 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.26.9 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.27.5 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.26.8 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.27.4 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.27.3 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.26.7 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.26.5 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.27.2 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.27.1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.26.4 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.27.0 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.26.3 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.27.0.rc2 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.27.0.rc1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.26.2 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb