Class: Decidim::Consultations::QuestionsController

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

Overview

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

Instance Method Summary collapse

Methods included from NeedsQuestion

enhance_controller, extended, included

Instance Method Details

#showObject



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

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