Sha256: 90c9a84c503690aa9ab4c5d97cdcded4ecff7fd93ce33a0b04c79e889465f175

Contents?: true

Size: 503 Bytes

Versions: 37

Compression:

Stored size: 503 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

        def after_destroy_path
          voting_attachments_path(current_voting)
        end

        def attached_to
          current_voting
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
decidim-elections-0.27.9 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.27.8 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.27.7 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.27.6 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.26.10 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.26.9 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.27.5 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.26.8 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.27.4 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.27.3 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.26.7 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.26.5 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.27.2 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.27.1 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.26.4 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.27.0 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.26.3 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.27.0.rc2 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.27.0.rc1 app/controllers/decidim/votings/admin/voting_attachments_controller.rb
decidim-elections-0.26.2 app/controllers/decidim/votings/admin/voting_attachments_controller.rb