Module: Decidim::NeedsParticipatoryProcess
- Included in:
- Features::BaseController, ParticipatoryProcessStepsController
- Defined in:
- app/controllers/concerns/decidim/needs_participatory_process.rb
Overview
This module, when injected into a controller, ensures there’s a Participatory Process available and deducts it from the context.
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.enhance_controller(instance_or_module) ⇒ Object
7 8 9 10 11 |
# File 'app/controllers/concerns/decidim/needs_participatory_process.rb', line 7 def self.enhance_controller(instance_or_module) instance_or_module.class_eval do helper_method :current_participatory_process end end |
.extended(base) ⇒ Object
13 14 15 16 17 |
# File 'app/controllers/concerns/decidim/needs_participatory_process.rb', line 13 def self.extended(base) base.extend NeedsOrganization, InstanceMethods enhance_controller(base) end |
.included(base) ⇒ Object
19 20 21 22 23 |
# File 'app/controllers/concerns/decidim/needs_participatory_process.rb', line 19 def self.included(base) base.include NeedsOrganization, InstanceMethods enhance_controller(base) end |