Sha256: ee063bc7d128a0d875b5f14c7c5c3bd7494cafc3a1a455c2720935ded0fd0653
Contents?: true
Size: 763 Bytes
Versions: 3
Compression:
Stored size: 763 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 question's admin panel. It will override the layout so it shows # the sidebar, preload the consultation, etc. module QuestionAdmin extend ActiveSupport::Concern included do include NeedsQuestion include Decidim::Admin::ParticipatorySpaceAdminContext participatory_space_admin_layout def current_participatory_space return current_consultation if params.has_key? :consultation_slug current_question end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems