Class: Thredded::Stats
- Inherits:
-
Object
- Object
- Thredded::Stats
- Includes:
- ActionView::Helpers::NumberHelper
- Defined in:
- app/models/thredded/stats.rb
Instance Method Summary collapse
Instance Method Details
#messageboards_count ⇒ Object
7 8 9 |
# File 'app/models/thredded/stats.rb', line 7 def number_to_human(.count, precision: 4) end |
#posts_count ⇒ Object
15 16 17 |
# File 'app/models/thredded/stats.rb', line 15 def posts_count number_to_human(.map(&:posts_count).sum, precision: 5) end |
#topics_count ⇒ Object
11 12 13 |
# File 'app/models/thredded/stats.rb', line 11 def topics_count number_to_human(.map(&:topics_count).sum, precision: 4) end |