Class: Decidim::Consultations::Admin::QuestionPermissionsController
- Inherits:
-
Admin::ResourcePermissionsController
- Object
- Admin::ResourcePermissionsController
- Decidim::Consultations::Admin::QuestionPermissionsController
- Includes:
- QuestionAdmin
- Defined in:
- app/controllers/decidim/consultations/admin/question_permissions_controller.rb
Overview
Controller that allows managing Questions permissions in the admin panel.
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
20 21 22 23 |
# File 'app/controllers/decidim/consultations/admin/question_permissions_controller.rb', line 20 def edit :update, :question, question: current_question super end |
#permission_class_chain ⇒ Object
16 17 18 |
# File 'app/controllers/decidim/consultations/admin/question_permissions_controller.rb', line 16 def ::Decidim..chain_for(::Decidim::Consultations::Admin::QuestionPermissionsController) end |
#return_path ⇒ Object
30 31 32 |
# File 'app/controllers/decidim/consultations/admin/question_permissions_controller.rb', line 30 def return_path consultation_questions_path current_consultation end |
#update ⇒ Object
25 26 27 28 |
# File 'app/controllers/decidim/consultations/admin/question_permissions_controller.rb', line 25 def update :update, :question, question: current_question super end |