Skip to content

Commit

Permalink
Merge pull request #2367 from consul/budget-headings-order
Browse files Browse the repository at this point in the history
Budgets groups headings order
  • Loading branch information
decabeza committed Jan 23, 2018
2 parents 2b8a321 + cb17076 commit 610e378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/budgets/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<% @budget.groups.each do |group| %>
<h2><%= group.name %></h2>
<ul class="no-bullet">
<% group.headings.each do |heading| %>
<% group.headings.order(name: :asc).each do |heading| %>
<li class="heading small-12 medium-4 large-2">
<%= link_to budget_investments_path(@budget.id, heading_id: heading.id) do %>
<%= heading.name %>
Expand Down

0 comments on commit 610e378

Please sign in to comment.