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