Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
admin: always order users by username
Browse files Browse the repository at this point in the history
Fixes #1080

Signed-off-by: Miquel Sabaté Solà <[email protected]>
  • Loading branch information
mssola committed Oct 13, 2016
1 parent ebd10ad commit f360d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Admin::UsersController < Admin::BaseController
before_action :another_user_access, only: [:edit, :update, :destroy]

def index
@users = User.not_portus.page(params[:page])
@users = User.not_portus.order(:username).page(params[:page])
@admin_count = User.admins.count
end

Expand Down

0 comments on commit f360d21

Please sign in to comment.