Module: Decidim::Assemblies::Admin::AssemblyContext
- Defined in:
- app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
Overview
This module, when injected into a controller, ensures there is a Assembly 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/assemblies/admin/assembly_context.rb', line 9 def self.extended(base) base.class_eval do include Concerns::AssemblyAdmin delegate :active_step, to: :current_assembly, prefix: false alias_method :current_assembly, :current_participatory_space end end |