Move assigned_valuators from helper to model
There's no good reason to call assigned_valuators(investment) when the logic can be at the model. Also removed the valuator_groups texts to be added in an independent method
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
<% if investment.valuators.size == 0 && investment.valuator_groups.size == 0 %>
|
||||
<%= t("admin.budget_investments.index.no_valuators_assigned") %>
|
||||
<% else %>
|
||||
<%= assigned_valuators(investment) %>
|
||||
<%= investment.assigned_valuators %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="small">
|
||||
|
||||
Reference in New Issue
Block a user