Sha256: 5d6856f723f422db8e86f999ab575d54a243ac81cbaedd14ebe3d7943beaf094

Contents?: true

Size: 502 Bytes

Versions: 13

Compression:

Stored size: 502 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,
          view_context:
        )
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-admin-0.29.1 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.28.4 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.29.0 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.28.3 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.29.0.rc4 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.29.0.rc3 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.29.0.rc2 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.29.0.rc1 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.28.2 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.28.1 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.28.0 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.28.0.rc5 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.28.0.rc4 app/controllers/decidim/admin/metrics_controller.rb