cherry picks creating poll question from successful proposals

This commit is contained in:
rgarcia
2016-11-18 21:09:28 +01:00
parent 54d9ca3e67
commit 724dac4df2
13 changed files with 150 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ class ProposalsController < ApplicationController
def index_customization
discard_archived
load_retired
load_proposal_ballots
load_successfull_proposals
load_featured unless @proposal_successfull_exists
end
@@ -103,7 +103,7 @@ class ProposalsController < ApplicationController
end
end
def load_proposal_ballots
def load_successfull_proposals
@proposal_successfull_exists = Proposal.successfull.exists?
end