Make admin sorting more obvious
This commit is contained in:
parent
2b79706d6d
commit
bf13579b92
8 changed files with 68 additions and 20 deletions
|
@ -2,7 +2,7 @@ class Admin::GroupsController < AdminController
|
|||
before_filter :group, only: [:edit, :show, :update, :destroy, :project_update]
|
||||
|
||||
def index
|
||||
@groups = Group.scoped
|
||||
@groups = Group.order('name ASC')
|
||||
@groups = @groups.search(params[:name]) if params[:name].present?
|
||||
@groups = @groups.page(params[:page]).per(20)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue