Sha256: db2868672d95c89464b78255d9b5bcc5ef82ede4de3a52e5b9d6135381a62625

Contents?: true

Size: 550 Bytes

Versions: 109

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    module Admin
      # This module, when injected into a controller, ensures there's a
      # Assembly available and deducts it from the context.
      module AssemblyContext
        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
      end
    end
  end
end

Version data entries

109 entries across 109 versions & 2 rubygems

Version Path
decidim-assemblies-0.27.9 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.27.8 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.27.7 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.27.6 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.26.10 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.26.9 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.27.5 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.26.8 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.27.4 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.27.3 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.26.7 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.26.5 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.27.2 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.27.1 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.26.4 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.27.0 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.26.3 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.27.0.rc2 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.27.0.rc1 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.26.2 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb