Class: Decidim::Consultations::QuestionWidgetsController

Inherits:
WidgetsController
  • Object
show all
Includes:
NeedsQuestion
Defined in:
app/controllers/decidim/consultations/question_widgets_controller.rb

Overview

This controller provides a widget that allows embedding the question

Instance Method Summary collapse

Methods included from NeedsQuestion

enhance_controller, extended, included

Instance Method Details

#showObject



11
12
13
14
15
# File 'app/controllers/decidim/consultations/question_widgets_controller.rb', line 11

def show
  enforce_permission_to :embed, :question, question: model if model

  super
end