Sha256: 2346900cde183d8c84b4f8286f9eaf444a169417ddc0e458a58fd87112ddfcf3
Contents?: true
Size: 1.18 KB
Versions: 45
Compression:
Stored size: 1.18 KB
Contents
# frozen_string_literal: true module Decidim module Templates module Admin # This controller is the abstract class from which all other controllers of # this engine inherit. # # Note that it inherits from `Decidim::Admin::ApplicationController`, which # override its layout and provide all kinds of useful methods. # # i18n-tasks-use t('decidim.admin.titles.template_types.questionnaires') class ApplicationController < Decidim::Admin::ApplicationController layout "decidim/admin/templates" helper_method :template_types register_permissions(::Decidim::Templates::Admin::ApplicationController, ::Decidim::Templates::Admin::Permissions, ::Decidim::Admin::Permissions) def permission_class_chain ::Decidim.permissions_registry.chain_for(::Decidim::Templates::Admin::ApplicationController) end def template_types @template_types ||= { I18n.t("template_types.questionnaires", scope: "decidim.templates") => decidim_admin_templates.questionnaire_templates_path } end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems