Use current_budget instead of Budget.current
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user