Load all the published budgets in the valuation interface

As now multiple budget can coexist at the same time it has sense to be able to
browse all the published budgets in the valuation budgets index page.
This commit is contained in:
Senén Rodero Rodríguez
2023-01-04 13:09:58 +01:00
parent ee80b3f4a2
commit 282b8f8697
6 changed files with 14 additions and 22 deletions

View File

@@ -5,6 +5,6 @@ class Valuation::BudgetsController < Valuation::BaseController
load_and_authorize_resource
def index
@budget = current_budget
@budgets = @budgets.published.order(created_at: :desc)
end
end