Use correct scope to sort headings by name

This commit is contained in:
Julian Herrero
2019-02-08 19:45:13 +01:00
parent 29a704bd60
commit a963a99c55
7 changed files with 57 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
module BudgetHeadingsHelper
def budget_heading_select_options(budget)
budget.headings.order_by_name.map do |heading|
budget.headings.sort_by_name.map do |heading|
[heading.name_scoped_by_group, heading.id]
end
end