adds votes to spending proposals

This commit is contained in:
rgarcia
2016-03-29 14:53:46 +02:00
parent e52004edc3
commit ed1ec1c553
18 changed files with 327 additions and 3 deletions

View File

@@ -77,6 +77,10 @@ class ApplicationController < ActionController::Base
@proposal_votes = current_user ? current_user.proposal_votes(proposals) : {}
end
def set_spending_proposal_votes(spending_proposals)
@spending_proposal_votes = current_user ? current_user.spending_proposal_votes(spending_proposals) : {}
end
def set_comment_flags(comments)
@comment_flags = current_user ? current_user.comment_flags(comments) : {}
end