Remove unused parameter
The `refresh_ballots` partial ignores the `investment` parameter completely; instead, it iterates over the investments in the `@investments` instance variable.
This commit is contained in:
@@ -6,7 +6,6 @@ $("#<%= dom_id(@investment) %>_ballot").html("<%= j render("/budgets/investments
|
||||
ballot: @ballot) %>");
|
||||
|
||||
<%= render "refresh_ballots",
|
||||
investment: @investment,
|
||||
investment_ids: @investment_ids,
|
||||
ballot: @ballot %>
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ $("#<%= dom_id(@investment) %>_ballot").html("<%= j render("/budgets/investments
|
||||
investment_ids: @investment_ids,
|
||||
ballot: @ballot) %>");
|
||||
<%= render "refresh_ballots",
|
||||
investment: @investment,
|
||||
investment_ids: @investment_ids,
|
||||
ballot: @ballot %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user