Class: Decidim::Initiatives::ApplicationController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Decidim::Initiatives::ApplicationController
- Includes:
- NeedsPermission
- Defined in:
- app/controllers/decidim/initiatives/application_controller.rb
Overview
The main application controller for initiatives
This controller is the abstract class from which all other controllers of this engine inherit.
Direct Known Subclasses
AuthorizationCreateModalsController, AuthorizationSignModalsController, CommitteeRequestsController, CreateInitiativeController, InitiativeSignaturesController, InitiativeTypesController, InitiativeVotesController, InitiativesController, InitiativesTypeScopesController, InitiativesTypeSignatureTypesController, VersionsController
Instance Method Summary collapse
Instance Method Details
#permission_class_chain ⇒ Object
29 30 31 |
# File 'app/controllers/decidim/initiatives/application_controller.rb', line 29 def ::Decidim..chain_for(::Decidim::Initiatives::ApplicationController) end |
#permission_scope ⇒ Object
33 34 35 |
# File 'app/controllers/decidim/initiatives/application_controller.rb', line 33 def :public end |
#permissions_context ⇒ Object
23 24 25 26 27 |
# File 'app/controllers/decidim/initiatives/application_controller.rb', line 23 def super.merge( current_participatory_space: try(:current_participatory_space) ) end |