Stylize `GroupTree` concern

This commit is contained in:
Bob Van Landuyt 2017-10-02 10:36:34 +02:00
parent cb8e67c292
commit 9870453eee
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ module GroupTree
@groups = groups.where(parent_id: params[:parent_id])
end
@groups = @groups.includes(:route)
@groups = @groups.sort(@sort = params[:sort])
@groups = @groups.page(params[:page])
.sort(@sort = params[:sort])
.page(params[:page])
respond_to do |format|
format.html