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

Version Path
itsf_backend-3.0.2 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-3.0.1 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-3.0.0 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-2.2.1 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-2.2.0 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-2.1.0 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-2.0.2 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-2.0.1 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.2.8 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.2.7 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.2.6 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.2.5 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.2.4 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.2.1 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.2.0 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.15 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.14 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.13 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.12 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-1.1.11 app/controllers/itsf/backend/dashboard_controller.rb