adds proposal show

This commit is contained in:
rgarcia
2015-09-12 12:30:20 +02:00
parent 3f7338a6ae
commit f2b917d486
13 changed files with 265 additions and 9 deletions

View File

@@ -78,6 +78,10 @@ class ApplicationController < ActionController::Base
@debate_votes = current_user ? current_user.debate_votes(debates) : {}
end
def set_proposal_votes(proposals)
@proposal_votes = current_user ? current_user.proposal_votes(proposals) : {}
end
def set_comment_flags(comments)
@comment_flags = current_user ? current_user.comment_flags(comments) : {}
end