Add and apply Rails/PluckId rubocop rule

This commit is contained in:
Javi Martín
2021-08-09 22:32:00 +02:00
parent 8d47acc12b
commit 69dda19af7
10 changed files with 18 additions and 18 deletions

View File

@@ -24,7 +24,7 @@ class Admin::StatsController < Admin::BaseController
.count(:voter_id)
@user_ids_who_didnt_vote_proposals = @verified_users - @user_ids_who_voted_proposals
budgets_ids = Budget.where.not(phase: "finished").pluck(:id)
budgets_ids = Budget.where.not(phase: "finished").ids
@budgets = budgets_ids.size
@investments = Budget::Investment.where(budget_id: budgets_ids).count
end