Class: Decidim::Initiatives::ApplicationController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- Decidim::Initiatives::ApplicationController
- Includes:
- NeedsPermission
- Defined in:
- decidim-initiatives/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
Methods included from RegistersPermissions
Methods inherited from ApplicationController
Methods included from UserBlockedChecker
#check_user_block_status, #check_user_not_blocked
Methods included from NeedsSnippets
Methods included from Headers::HttpCachingDisabler
Methods included from HasStoredPath
#skip_store_location?, #store_current_location
Methods included from TranslatableAttributes
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#permission_class_chain ⇒ Object
29 30 31 |
# File 'decidim-initiatives/app/controllers/decidim/initiatives/application_controller.rb', line 29 def ::Decidim..chain_for(::Decidim::Initiatives::ApplicationController) end |
#permission_scope ⇒ Object
33 34 35 |
# File 'decidim-initiatives/app/controllers/decidim/initiatives/application_controller.rb', line 33 def :public end |
#permissions_context ⇒ Object
23 24 25 26 27 |
# File 'decidim-initiatives/app/controllers/decidim/initiatives/application_controller.rb', line 23 def super.merge( current_participatory_space: try(:current_participatory_space) ) end |