Sha256: 13c837811c45ccd23be7b15491a33923a568a5e3d82e99af074bae124e3f62bd

Contents?: true

Size: 564 Bytes

Versions: 9

Compression:

Stored size: 564 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
      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

Version Path
itsf_backend-1.1.7 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.6 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.5 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.4 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.3 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.2 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.1 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.0 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.0.1 app/controllers/itsf/backend/dashboard_controller.rb