Class: Decidim::HomeStatsPresenter

Inherits:
StatsPresenter show all
Defined in:
decidim-core/app/presenters/decidim/home_stats_presenter.rb

Overview

A presenter to render statistics in the homepage.

Instance Method Summary collapse

Methods inherited from StatsPresenter

#all_stats

Instance Method Details

#collection(priority: StatsRegistry::HIGH_PRIORITY) ⇒ Object



10
11
12
# File 'decidim-core/app/presenters/decidim/home_stats_presenter.rb', line 10

def collection(priority: StatsRegistry::HIGH_PRIORITY)
  super
end

#scope_entityObject



6
7
8
# File 'decidim-core/app/presenters/decidim/home_stats_presenter.rb', line 6

def scope_entity
  __getobj__.fetch(:organization)
end