Sha256: fe08fdfd1dc3f5bfbd0938430a227eedc0f906fb94a7ad2656b2f1446882af03

Contents?: true

Size: 738 Bytes

Versions: 27

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

require "active_support/concern"

module Decidim
  module ParticipatoryProcesses
    module Admin
      module Concerns
        # This concern is meant to be included in all controllers that are scoped
        # into a participatory process' admin panel. It will override the layout
        # so it shows the sidebar, preload the participatory process, etc.
        module ParticipatoryProcessAdmin
          extend ActiveSupport::Concern

          included do
            include NeedsParticipatoryProcess

            layout "decidim/admin/participatory_process"

            alias_method :current_participatory_space, :current_participatory_process
          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/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.8.2 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.8.1 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.8.0 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.7.4 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.7.3 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.7.2 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.7.1 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.7.0 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.6.8 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-0.6.8 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.6.7 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-0.6.7 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.6.6 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-0.6.6 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.6.5 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-0.6.5 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.6.4 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-0.6.4 decidim-participatory_processes/app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb
decidim-participatory_processes-0.6.3 app/controllers/decidim/participatory_processes/admin/concerns/participatory_process_admin.rb