Sha256: f808a6624dfdeae23e9eacb1c9eccfcd34e851ad68f4d33ed89980b60b27f440

Contents?: true

Size: 690 Bytes

Versions: 8

Compression:

Stored size: 690 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    module Admin
      # Controller that allows managing all the attachment collections for
      # a voting.
      class VotingAttachmentCollectionsController < Decidim::Admin::ApplicationController
        include Decidim::Admin::Concerns::HasAttachmentCollections
        include Decidim::Admin::Concerns::HasTabbedMenu
        include VotingAdmin

        def after_destroy_path
          voting_attachment_collections_path(current_voting)
        end

        def collection_for
          current_voting
        end

        private

        def tab_menu_name = :votings_admin_attachments_menu
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-elections-0.28.5 app/controllers/decidim/votings/admin/voting_attachment_collections_controller.rb
decidim-elections-0.28.4 app/controllers/decidim/votings/admin/voting_attachment_collections_controller.rb
decidim-elections-0.28.3 app/controllers/decidim/votings/admin/voting_attachment_collections_controller.rb
decidim-elections-0.28.2 app/controllers/decidim/votings/admin/voting_attachment_collections_controller.rb
decidim-elections-0.28.1 app/controllers/decidim/votings/admin/voting_attachment_collections_controller.rb
decidim-elections-0.28.0 app/controllers/decidim/votings/admin/voting_attachment_collections_controller.rb
decidim-elections-0.28.0.rc5 app/controllers/decidim/votings/admin/voting_attachment_collections_controller.rb
decidim-elections-0.28.0.rc4 app/controllers/decidim/votings/admin/voting_attachment_collections_controller.rb