Module: Decidim::ParticipatoryProcesses::Admin::ParticipatoryProcessContext
- Defined in:
- app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
Overview
This module, when injected into a controller, ensures there’s a Participatory Process available and deducts it from the context.
Class Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb', line 9 def self.extended(base) base.class_eval do include Concerns::ParticipatoryProcessAdmin delegate :active_step, to: :current_participatory_process, prefix: false alias_method :current_participatory_process, :current_participatory_space end end |