Sha256: 6b94403ec9788bd5b16f45346b161845557b9d1eb0aba94cdb6e7ce945434a10

Contents?: true

Size: 477 Bytes

Versions: 34

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    class MetricsController < Decidim::Admin::ApplicationController
      helper_method :metrics_presenter

      def index
        enforce_permission_to :read, :metrics
      end

      private

      def metrics_presenter
        @metrics_presenter ||= Decidim::Admin::DashboardMetricChartsPresenter.new(
          summary: false,
          organization: current_organization
        )
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
decidim-admin-0.26.10 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.26.9 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.26.8 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.26.7 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.26.5 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.26.4 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.26.3 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.26.2 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.26.1 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.26.0 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.26.0.rc2 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.26.0.rc1 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.25.2 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.25.1 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.25.0 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.25.0.rc4 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.25.0.rc3 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.25.0.rc2 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.25.0.rc1 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.24.3 app/controllers/decidim/admin/metrics_controller.rb