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.
11 lines
223 B
Ruby
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
|