Legislation proposal controller adaptation

This commit is contained in:
María Checa
2017-09-19 10:08:36 +02:00
parent 8805037e2f
commit d83bb9e31f
2 changed files with 16 additions and 8 deletions

View File

@@ -76,6 +76,10 @@ class ApplicationController < ActionController::Base
@proposal_votes = current_user ? current_user.proposal_votes(proposals) : {}
end
def set_legislation_proposal_votes(proposals)
@proposal_votes = current_user ? current_user.legislation_proposal_votes(proposals) : {}
end
def set_spending_proposal_votes(spending_proposals)
@spending_proposal_votes = current_user ? current_user.spending_proposal_votes(spending_proposals) : {}
end