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.26.1 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.26.0 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.26.0.rc2 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.26.0.rc1 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.25.2 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.25.1 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.25.0 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.25.0.rc4 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.25.0.rc3 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.25.0.rc2 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.25.0.rc1 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.24.3 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.23.6 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.24.2 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.23.5 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.24.1 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.24.0 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.24.0.rc2 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.23.4 app/controllers/decidim/consultations/questions_controller.rb
decidim-consultations-0.24.0.rc1 app/controllers/decidim/consultations/questions_controller.rb