Sha256: 3af1abb31d43335db4ccf06515edd1a531864ae475da30fb0b9757632713014e
Contents?: true
Size: 943 Bytes
Versions: 50
Compression:
Stored size: 943 Bytes
Contents
# frozen_string_literal: true require "active_support/concern" module Decidim module Initiatives module Admin # This concern is meant to be included in all controllers that are scoped # into an initiative's admin panel. It will override the layout so it shows # the sidebar, preload the assembly, etc. module InitiativeAdmin extend ActiveSupport::Concern include InitiativeSlug included do include NeedsInitiative include Decidim::Admin::ParticipatorySpaceAdminContext participatory_space_admin_layout alias_method :current_participatory_space, :current_initiative alias_method :current_participatory_space_manifest, :initiatives_manifest end private def initiatives_manifest @initiatives_manifest ||= Decidim.find_participatory_space_manifest(:initiatives) end end end end end
Version data entries
50 entries across 50 versions & 1 rubygems