Allow printing investments from any budget in the management interface
This commit is contained in:
@@ -49,10 +49,6 @@ class Management::BaseController < ActionController::Base
|
||||
I18n.with_locale(session[:locale], &action)
|
||||
end
|
||||
|
||||
def current_budget
|
||||
Budget.current
|
||||
end
|
||||
|
||||
def clear_password
|
||||
session[:new_password] = nil
|
||||
end
|
||||
|
||||
@@ -19,7 +19,7 @@ class Management::BudgetsController < Management::BaseController
|
||||
end
|
||||
|
||||
def print_investments
|
||||
@budget = current_budget
|
||||
@budgets = Budget.published.order(created_at: :desc).page(params[:page])
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user