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

@@ -6,7 +6,7 @@ class Admin::StatsController < Admin::BaseController
@visits = Visit.count
@debates = Debate.with_hidden.count
@proposals = Proposal.with_hidden.count
@comments = Comment.with_hidden.count
@comments = Comment.not_valuations.with_hidden.count
@debate_votes = Vote.where(votable_type: 'Debate').count
@proposal_votes = Vote.where(votable_type: 'Proposal').count