Sha256: 2351d3d9c8c390955f65df54fcd84d72bc00c2e132d3d3c8d6cb204307b685ed

Contents?: true

Size: 671 Bytes

Versions: 65

Compression:

Stored size: 671 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Consultations
    # A controller that holds the logic to show questions in a
    # public layout.
    class QuestionsController < Decidim::Consultations::ApplicationController
      layout "layouts/decidim/question"

      include NeedsQuestion

      helper Decidim::SanitizeHelper
      helper Decidim::IconHelper
      helper Decidim::Comments::CommentsHelper
      helper Decidim::AttachmentsHelper
      helper Decidim::ResourceReferenceHelper
      helper Decidim::ActionAuthorizationHelper

      def show
        enforce_permission_to :read, :question, question: current_question
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

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