Sha256: 28aac09c9b64df81737b0910ff4350dfc0e7b2c4b5a399cb4ad75f9507753889

Contents?: true

Size: 833 Bytes

Versions: 7

Compression:

Stored size: 833 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Votings
    module Admin
      # Controller that allows managing voting publications.
      #
      # i18n-tasks-use t('decidim.admin.voting_publications.create.error')
      # i18n-tasks-use t('decidim.admin.voting_publications.create.success')
      # i18n-tasks-use t('decidim.admin.voting_publications.destroy.error')
      # i18n-tasks-use t('decidim.admin.voting_publications.destroy.success')
      class VotingPublicationsController < Decidim::Admin::SpacePublicationsController
        include VotingAdmin

        private

        def enforce_permission_to_publish = enforce_permission_to(:publish, :voting, voting: current_voting)

        def i18n_scope = "decidim.admin.voting_publications"

        def fallback_location = votings_path
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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