Sets partial locals correctly in use and management views

This commit is contained in:
kikito
2016-12-16 18:01:20 +01:00
parent 19e19e5c43
commit e0c0b18757
7 changed files with 15 additions and 9 deletions

View File

@@ -65,7 +65,11 @@
</div>
<% elsif investment.should_show_ballots? %>
<div id="<%= dom_id(investment) %>_ballot">
<%= render 'ballot', investment: investment %>
<%= render partial: 'ballot', locals: {
investment: investment,
investment_ids: investment_ids,
ballot: ballot,
} %>
</div>
<% end %>
</div>