Files
grecia/app/controllers/valuation/budgets_controller.rb
Senén Rodero Rodríguez 282b8f8697 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.
2023-02-03 11:01:41 +01:00

11 lines
223 B
Ruby

class Valuation::BudgetsController < Valuation::BaseController
include FeatureFlags
feature_flag :budgets
load_and_authorize_resource
def index
@budgets = @budgets.published.order(created_at: :desc)
end
end