Merge pull request #2369 from consul/fix_finished_budgets_list

Correctly show finished budgets at budget index
This commit is contained in:
BertoCQ
2018-01-30 02:25:06 +01:00
committed by GitHub
4 changed files with 93 additions and 102 deletions

View File

@@ -14,8 +14,7 @@ class BudgetsController < ApplicationController
end
def index
@budgets = @budgets.order(created_at: :desc)
@budget = current_budget
@finished_budgets = @budgets.finished.order(created_at: :desc)
@budgets_coordinates = current_budget_map_locations
end