mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
some basic tests for admin/users controller, fixed bug in admin/users controller for displaying users
Fixes by hounci violations
This commit is contained in:
parent
7573a19240
commit
f84f3b97a7
7 changed files with 64 additions and 6 deletions
|
|
@ -2,7 +2,11 @@ class Admin::UsersController < ApplicationController
|
|||
before_filter :verify_admin
|
||||
|
||||
def index
|
||||
@users = User.joins(:person).order('people.last_name ASC')
|
||||
@users = User.joins(:person).order("people.last_name ASC").select("users.*,
|
||||
people.last_name AS last_name,
|
||||
people.first_name AS first_name,
|
||||
people.public_name AS public_name,
|
||||
people.email AS email")
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue