Sha256: 93a8fda60ed13c731036df00dbeefd318e7bc2c9c05518da9c01537044493d86
Contents?: true
Size: 766 Bytes
Versions: 6
Compression:
Stored size: 766 Bytes
Contents
# frozen_string_literal: true module Decidim module DecidimAwesome 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::ApplicationController layout "decidim/decidim_awesome/admin/application" def permission_class_chain [::Decidim::DecidimAwesome::Admin::Permissions] + super end before_action do enforce_permission_to :update, :organization, organization: current_organization end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems