refactors manager proposal votes

This commit is contained in:
rgarcia
2015-10-08 14:40:47 +02:00
parent c5a7ff7501
commit a3503c7eb3
7 changed files with 10 additions and 70 deletions

View File

@@ -11,7 +11,7 @@ class Management::ProposalsController < Management::BaseController
def vote
@proposal.register_vote(current_user, 'yes')
redirect_to management_proposals_url, notice: "Succesfully voted"
set_proposal_votes(@proposal)
end
def print