removes specs of proposals successful banner

This commit is contained in:
decabeza
2017-06-05 17:55:37 +02:00
parent a9272e6b96
commit ea38f79442
3 changed files with 6 additions and 30 deletions

View File

@@ -35,6 +35,8 @@ class ProposalsController < ApplicationController
def index_customization
discard_archived
load_retired
load_successful_proposals
load_featured unless @proposal_successful_exists
end
def vote
@@ -113,4 +115,8 @@ class ProposalsController < ApplicationController
@resources = @resources.where('proposals.id NOT IN (?)', @featured_proposals.map(&:id))
end
end
def load_successful_proposals
@proposal_successful_exists = Proposal.successful.exists?
end
end