Sha256: be02c8061103bdcc6a892d7791010cacaa52cb61cca2dcf7881bc48647929ae8

Contents?: true

Size: 625 Bytes

Versions: 27

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
decidim-participatory_processes-0.8.3 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.8.2 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.8.1 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.8.0 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.7.4 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.7.3 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.7.2 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.7.1 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.7.0 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.6.8 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-0.6.8 decidim-participatory_processes/app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.6.7 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-0.6.7 decidim-participatory_processes/app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.6.6 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-0.6.6 decidim-participatory_processes/app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.6.5 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-0.6.5 decidim-participatory_processes/app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.6.4 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-0.6.4 decidim-participatory_processes/app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb
decidim-participatory_processes-0.6.3 app/controllers/concerns/decidim/participatory_processes/admin/participatory_process_context.rb