Sha256: f49106103dc33b132b17d9e834f938bb038ee11f6e0fa022bca2970cd11fd2b4

Contents?: true

Size: 804 Bytes

Versions: 13

Compression:

Stored size: 804 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    module Admin
      # Controller that allows managing all the attachments for a participatory
      # conference.
      #
      class ConferenceAttachmentsController < Decidim::Conferences::Admin::ApplicationController
        include Concerns::ConferenceAdmin
        include Decidim::Admin::Concerns::HasAttachments
        include Decidim::Admin::Concerns::HasTabbedMenu

        def after_destroy_path
          conference_attachments_path(current_conference)
        end

        def attached_to
          current_conference
        end

        def authorization_object
          @attachment || Attachment
        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_attachments_controller.rb
decidim-conferences-0.28.4 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb
decidim-conferences-0.29.0 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb
decidim-conferences-0.28.3 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb
decidim-conferences-0.29.0.rc4 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb
decidim-conferences-0.29.0.rc3 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb
decidim-conferences-0.29.0.rc2 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb
decidim-conferences-0.29.0.rc1 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb
decidim-conferences-0.28.2 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb
decidim-conferences-0.28.1 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb
decidim-conferences-0.28.0 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb
decidim-conferences-0.28.0.rc5 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb
decidim-conferences-0.28.0.rc4 app/controllers/decidim/conferences/admin/conference_attachments_controller.rb