Sha256: dd0deaebd1cb70c86d1ffcc4c9ac899d42934fd4a574499f3a554d3fa1f01263

Contents?: true

Size: 762 Bytes

Versions: 5

Compression:

Stored size: 762 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)
    include Controller::CurrentEngineConcern
    include Controller::BreadcrumbsConcern
    
    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

5 entries across 5 versions & 1 rubygems

Version Path
itsf_backend-5.0.0.pre app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-4.2.3 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-4.2.2 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-4.2.1 app/controllers/itsf/backend/dashboard_controller.rb
itsf_backend-4.2.0 app/controllers/itsf/backend/dashboard_controller.rb