Sha256: fa44aa5a16fdc9ce6d8901f3b6b48b996dc0636dfaec0ca3ac0b9731803f19c1

Contents?: true

Size: 637 Bytes

Versions: 8

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    module Admin
      # Controller that allows managing all the attachments for a voting.
      class VotingAttachmentsController < Decidim::Admin::ApplicationController
        include VotingAdmin
        include Decidim::Admin::Concerns::HasAttachments
        include Decidim::Admin::Concerns::HasTabbedMenu

        def after_destroy_path
          voting_attachments_path(current_voting)
        end

        def attached_to
          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_attachments_controller.rb
decidim-elections-0.28.4 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.28.3 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.28.2 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.28.1 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.28.0 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.28.0.rc5 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.28.0.rc4 app/controllers/decidim/votings/admin/voting_attachments_controller.rb