Use double quotes in controllers/
This commit is contained in:
@@ -8,9 +8,9 @@ class Admin::StatsController < Admin::BaseController
|
||||
@proposals = Proposal.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
|
||||
@comment_votes = Vote.where(votable_type: 'Comment').count
|
||||
@debate_votes = Vote.where(votable_type: "Debate").count
|
||||
@proposal_votes = Vote.where(votable_type: "Proposal").count
|
||||
@comment_votes = Vote.where(votable_type: "Comment").count
|
||||
@votes = Vote.count
|
||||
|
||||
@user_level_two = User.active.level_two_verified.count
|
||||
@@ -19,14 +19,14 @@ class Admin::StatsController < Admin::BaseController
|
||||
@unverified_users = User.active.unverified.count
|
||||
@users = User.active.count
|
||||
|
||||
@user_ids_who_voted_proposals = ActsAsVotable::Vote.where(votable_type: 'Proposal')
|
||||
@user_ids_who_voted_proposals = ActsAsVotable::Vote.where(votable_type: "Proposal")
|
||||
.distinct
|
||||
.count(:voter_id)
|
||||
|
||||
@user_ids_who_didnt_vote_proposals = @verified_users - @user_ids_who_voted_proposals
|
||||
|
||||
@spending_proposals = SpendingProposal.count
|
||||
budgets_ids = Budget.where.not(phase: 'finished').pluck(:id)
|
||||
budgets_ids = Budget.where.not(phase: "finished").pluck(:id)
|
||||
@budgets = budgets_ids.size
|
||||
@investments = Budget::Investment.where(budget_id: budgets_ids).count
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user