Module: Decidim::Initiatives::NeedsInitiative
- Extended by:
- ActiveSupport::Concern
- Included in:
- Admin::ComponentsController, Admin::InitiativesController, CommitteeRequestsController, InitiativeVotesController, InitiativeWidgetsController, InitiativesController
- Defined in:
- app/controllers/concerns/decidim/initiatives/needs_initiative.rb
Overview
This module, when injected into a controller, ensures there’s an initiative available and deducts it from the context.