Makes all tests pass in bi management

This commit is contained in:
kikito
2016-12-07 19:16:37 +01:00
parent 1e3a44b380
commit 748fd8becf
7 changed files with 63 additions and 51 deletions

View File

@@ -1,8 +1,8 @@
module BudgetHeadingsHelper
def budget_heading_select_options(budget)
budget.headings.includes(:group).order('budget_groups.name', 'budget_headings.name').map do |heading|
["#{heading.group.name}: #{heading.name}", heading.id]
budget.headings.order_by_group_name.map do |heading|
[heading.name_scoped_by_group, heading.id]
end
end