Sha256: 11cffe4f79ad02c4122e9140bfc5ed8e85a2f45ecc8ace2c2695cfd2a387a718

Contents?: true

Size: 388 Bytes

Versions: 6

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true
require_dependency "decidim/admin/application_controller"

module Decidim
  module Admin
    # Controller that shows a simple dashboard.
    #
    class DashboardController < ApplicationController
      def show
        authorize :dashboard
      end

      private

      def policy_class
        Decidim::Admin::DashboardPolicy
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
decidim-admin-0.0.1.alpha7 app/controllers/decidim/admin/dashboard_controller.rb
decidim-0.0.1.alpha7 decidim-admin/app/controllers/decidim/admin/dashboard_controller.rb
decidim-admin-0.0.1.alpha6 app/controllers/decidim/admin/dashboard_controller.rb
decidim-0.0.1.alpha6 decidim-admin/app/controllers/decidim/admin/dashboard_controller.rb
decidim-admin-0.0.1.alpha5 app/controllers/decidim/admin/dashboard_controller.rb
decidim-0.0.1.alpha5 decidim-admin/app/controllers/decidim/admin/dashboard_controller.rb