Class: Decidim::Consultations::QuestionsController

Inherits:
ApplicationController show all
Includes:
NeedsQuestion
Defined in:
decidim-consultations/app/controllers/decidim/consultations/questions_controller.rb

Overview

A controller that holds the logic to show questions in a public layout.

Constant Summary

Constants included from RedesignLayout

RedesignLayout::FALLBACK_LAYOUT

Instance Method Summary collapse

Methods included from NeedsQuestion

enhance_controller, extended, included

Methods included from UserBlockedChecker

#check_user_block_status, #check_user_not_blocked

Methods included from NeedsSnippets

#snippets

Methods included from HttpCachingDisabler

#disable_http_caching

Methods included from HasStoredPath

#skip_store_location?, #store_current_location

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#showObject



19
20
21
# File 'decidim-consultations/app/controllers/decidim/consultations/questions_controller.rb', line 19

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