Sha256: a71e22d9c997a072be7df83477919be581a885be2bf3951c7449ee24a4a9dff6
Contents?: true
Size: 769 Bytes
Versions: 13
Compression:
Stored size: 769 Bytes
Contents
# frozen_string_literal: true module Decidim module <%= component_module_name %> module Admin # This controller is the abstract class from which all other controllers of # this engine inherit. # # Note that it inherits from `Decidim::Admin::Components::BaseController`, which # override its layout and provide all kinds of useful methods. class ApplicationController < Decidim::Admin::Components::BaseController def permission_class_chain [::Decidim::<%= component_module_name %>::Admin::Permissions] + super end def user_not_authorized_path decidim.root_path end def user_has_no_permission_path decidim.root_path end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems