Order budget groups by id

To maintain order after editing a group’s name

We should probably add timestamps to `groups` and `headings` and order
by `created_at` instead
This commit is contained in:
rgarcia
2018-03-20 09:05:23 +01:00
parent 86e4a5d853
commit 1083213ac7

View File

@@ -3,5 +3,5 @@
<h2><%= @budget.name %></h2>
<div id="<%= dom_id @budget %>_groups">
<%= render "groups", groups: @budget.groups %>
<%= render "groups", groups: @budget.groups.order(:id) %>
</div>