adds heading filter to index
This commit is contained in:
7
app/helpers/budget_headings_helper.rb
Normal file
7
app/helpers/budget_headings_helper.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
module BudgetHeadingsHelper
|
||||
|
||||
def budget_heading_select_options(budget)
|
||||
budget.headings.map {|heading| [heading.name, heading.id]}
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user