Sha256: 7515793c7497a14eea94919fde474794c1e7fc2311dbe2865d9067c2c4334148
Contents?: true
Size: 632 Bytes
Versions: 23
Compression:
Stored size: 632 Bytes
Contents
module Itsf::Backend class DashboardController < Configuration.dashboard_base_controller.constantize helper Itsf::Backend::ApplicationHelper 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
23 entries across 23 versions & 1 rubygems