Make budget headings translatable

This commit is contained in:
Julian Herrero
2019-01-22 18:18:24 +01:00
parent 1c35ec99c1
commit 922600252c
14 changed files with 225 additions and 54 deletions

View File

@@ -1,9 +1,9 @@
module BudgetHeadingsHelper
def budget_heading_select_options(budget)
budget.headings.order_by_group_name.map do |heading|
budget.headings.order_by_name.map do |heading|
[heading.name_scoped_by_group, heading.id]
end.uniq
end
end
def heading_link(assigned_heading = nil, budget = nil)