Refactors set_investment_votes

This commit is contained in:
kikito
2016-12-14 13:42:12 +01:00
parent 8d60ea1d3c
commit 2a258fc558
3 changed files with 17 additions and 14 deletions

View File

@@ -80,10 +80,6 @@ class ApplicationController < ActionController::Base
@spending_proposal_votes = current_user ? current_user.spending_proposal_votes(spending_proposals) : {}
end
def set_budget_investment_votes(budget_investments)
@budget_investment_votes = current_user ? current_user.budget_investment_votes(budget_investments) : {}
end
def set_comment_flags(comments)
@comment_flags = current_user ? current_user.comment_flags(comments) : {}
end