Class: Decidim::Surveys::SurveysController
- Inherits:
-
ApplicationController
- Object
- Components::BaseController
- ApplicationController
- Decidim::Surveys::SurveysController
- Includes:
- ComponentPathHelper, Forms::Concerns::HasQuestionnaire
- Defined in:
- app/controllers/decidim/surveys/surveys_controller.rb
Overview
Exposes the survey resource so users can view and answer them.
Instance Method Summary collapse
Instance Method Details
#check_permissions ⇒ Object
15 16 17 |
# File 'app/controllers/decidim/surveys/surveys_controller.rb', line 15 def render :no_permission unless (:answer, resource: survey).ok? end |
#questionnaire_for ⇒ Object
19 20 21 |
# File 'app/controllers/decidim/surveys/surveys_controller.rb', line 19 def questionnaire_for survey end |