Prevent valuation comments from appearing in public pages

This commit is contained in:
Bertocq
2018-01-31 18:14:11 +01:00
parent 5420cd36bf
commit c0dcd03bab
5 changed files with 18 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ class StatsController < ApplicationController
@visits = daily_cache('visits') { Visit.count }
@debates = daily_cache('debates') { Debate.with_hidden.count }
@proposals = daily_cache('proposals') { Proposal.with_hidden.count }
@comments = daily_cache('comments') { Comment.with_hidden.count }
@comments = daily_cache('comments') { Comment.not_valuations.with_hidden.count }
@debate_votes = daily_cache('debate_votes') { Vote.where(votable_type: 'Debate').count }
@proposal_votes = daily_cache('proposal_votes') { Vote.where(votable_type: 'Proposal').count }