adds @budget param to apply_filters_and_search

This commit is contained in:
kikito
2016-12-22 20:26:21 +01:00
parent 260b9aa1e4
commit 54bd5aeeb1
2 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ module Budgets
respond_to :html, :js
def index
@investments = @investments.apply_filters_and_search(params).send("sort_by_#{@current_order}").page(params[:page]).per(10).for_render
@investments = @investments.apply_filters_and_search(@budget, params).send("sort_by_#{@current_order}").page(params[:page]).per(10).for_render
@investment_ids = @investments.pluck(:id)
load_investment_votes(@investments)
end