loads @investment_ids in ballot lines controller

This commit is contained in:
kikito
2016-12-22 20:25:41 +01:00
parent 15fade5660
commit 260b9aa1e4

View File

@@ -54,6 +54,7 @@ module Budgets
def load_investments
if params[:investments_ids].present?
@investment_ids = params[:investment_ids]
@investments = Budget::Investment.where(id: params[:investments_ids])
end
end