Sha256: 69a946a46e38cff96e52ba3521f94dd5a778807761c69bba0b9822a09ac9b476

Contents?: true

Size: 515 Bytes

Versions: 12

Compression:

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-admin-0.27.9 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.27.8 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.27.7 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.27.6 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.27.5 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.27.4 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.27.3 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.27.2 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.27.1 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.27.0 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.27.0.rc2 app/controllers/decidim/admin/metrics_controller.rb
decidim-admin-0.27.0.rc1 app/controllers/decidim/admin/metrics_controller.rb