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-0.6.4 decidim-assemblies/app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.6.3 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-0.6.3 decidim-assemblies/app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.6.2 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-0.6.2 decidim-assemblies/app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.6.1 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-0.6.1 decidim-assemblies/app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-assemblies-0.6.0 app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb
decidim-0.6.0 decidim-assemblies/app/controllers/concerns/decidim/assemblies/admin/assembly_context.rb