Merge pull request #3148 from matisnape/budget_investments_sorting_columns

Add sort links to admin tables
This commit is contained in:
Javier Martín
2019-02-15 19:19:11 +01:00
committed by GitHub
9 changed files with 192 additions and 46 deletions

View File

@@ -77,7 +77,8 @@ class Admin::BudgetInvestmentsController < Admin::BaseController
def load_investments
@investments = Budget::Investment.scoped_filter(params, @current_filter)
.order_filter(params[:sort_by])
.order_filter(params)
@investments = @investments.page(params[:page]) unless request.format.csv?
end
@@ -133,5 +134,4 @@ class Admin::BudgetInvestmentsController < Admin::BaseController
end
end
end
end