Sha256: 9874d81eb51920009e2b0f194ef8cc03bba07dfba9c0e8ad6d7319753fb0d270

Contents?: true

Size: 848 Bytes

Versions: 13

Compression:

Stored size: 848 Bytes

Contents

# frozen_string_literal: true

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

        def after_destroy_path
          conference_attachment_collections_path(current_conference)
        end

        def collection_for
          current_conference
        end

        def authorization_object
          @attachment_collection || AttachmentCollection
        end

        private

        def tab_menu_name = :conferences_admin_attachments_menu
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-conferences-0.29.1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.28.4 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.29.0 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.28.3 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.29.0.rc4 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.29.0.rc3 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.29.0.rc2 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.29.0.rc1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.28.2 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.28.1 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.28.0 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.28.0.rc5 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb
decidim-conferences-0.28.0.rc4 app/controllers/decidim/conferences/admin/conference_attachment_collections_controller.rb