Use current_budget instead of Budget.current

This commit is contained in:
rgarcia
2018-01-16 19:34:21 +01:00
parent a215c9c603
commit eca971a648
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ class Management::BudgetsController < Management::BaseController
end end
def print_investments def print_investments
@budget = Budget.current @budget = current_budget
end end
private private

View File

@@ -5,7 +5,7 @@ class Valuation::BudgetsController < Valuation::BaseController
load_and_authorize_resource load_and_authorize_resource
def index def index
@budget = Budget.current @budget = current_budget
if @budget.present? if @budget.present?
@investments_with_valuation_open = {} @investments_with_valuation_open = {}
@investments_with_valuation_open = @budget.investments @investments_with_valuation_open = @budget.investments