Sha256: a9299d1a50340b9b7bbbfdd5da6f03e7ce80b8c3d3a47de6cc27fb37ae6ff793

Contents?: true

Size: 625 Bytes

Versions: 3

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

require "active_support/concern"

module Decidim
  module Consultations
    module Admin
      # This concern is meant to be included in all controllers that are scoped
      # into an consultation's admin panel. It will override the layout so it shows
      # the sidebar, preload the consultation, etc.
      module ConsultationAdmin
        extend ActiveSupport::Concern

        included do
          include NeedsConsultation

          layout "decidim/admin/consultation"

          alias_method :current_participatory_space, :current_consultation
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-consultations-0.11.2 app/controllers/concerns/decidim/consultations/admin/consultation_admin.rb
decidim-consultations-0.11.1 app/controllers/concerns/decidim/consultations/admin/consultation_admin.rb
decidim-consultations-0.11.0.pre1 app/controllers/concerns/decidim/consultations/admin/consultation_admin.rb