Class: Decidim::Initiatives::InitiativesStatsFollowersCount
- Inherits:
-
StatsFollowersCount
- Object
- StatsFollowersCount
- Decidim::Initiatives::InitiativesStatsFollowersCount
- Defined in:
- app/queries/decidim/initiatives/initiatives_stats_followers_count.rb
Overview
This class counts all Followers of a initiative
Class Method Summary collapse
Class Method Details
.for(participatory_space) ⇒ Object
7 8 9 10 11 |
# File 'app/queries/decidim/initiatives/initiatives_stats_followers_count.rb', line 7 def self.for(participatory_space) return 0 unless participatory_space.is_a?(Decidim::Initiatives) new(participatory_space).query end |