Makes all tests pass in bi management
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user