Sha256: 26d0a1ed6364ddbd1ddb11cc15fdf903d0064266ff9a2ad74ab9526baa32b21a
Contents?: true
Size: 674 Bytes
Versions: 9
Compression:
Stored size: 674 Bytes
Contents
module Itsf::Backend class DashboardController < Configuration.dashboard_base_controller.constantize helper Itsf::Backend::ApplicationHelper helper Itsf::Backend::BootstrapHelper helper MultiClientHelper if Itsf::Backend.features?(:multi_client) layout 'itsf/backend/base' if Itsf::Backend.features?(:pundit) include Pundit prepend Controller::PunditNamespacedAuthorizeConcern include Controller::PunditAuthorizationFailureHandlingConcern helper_method :engine_policy after_action :verify_authorized def index authorize :dashboard, :access?, self.class.name.deconstantize end end end end
Version data entries
9 entries across 9 versions & 1 rubygems