Class: Decidim::HomeStatsPresenter
- Inherits:
-
StatsPresenter
- Object
- SimpleDelegator
- StatsPresenter
- Decidim::HomeStatsPresenter
- 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
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_entity ⇒ Object
6 7 8 |
# File 'decidim-core/app/presenters/decidim/home_stats_presenter.rb', line 6 def scope_entity __getobj__.fetch(:organization) end |