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.23.3 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.23.2 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.23.1 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.23.1.rc1 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.23.0 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.22.0 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.21.0 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.20.1 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.20.0 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.19.1 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.18.1 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.19.0 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.17.2 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.18.0 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.17.1 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.16.1 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.17.0 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.16.0 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.15.2 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.15.1 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb