commit
9090cc0d38
2 changed files with 4 additions and 8 deletions
|
|
@ -2,13 +2,7 @@ class Admin::UsersController < ApplicationController
|
|||
before_filter :verify_admin
|
||||
|
||||
def index
|
||||
@users = User.all(: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")
|
||||
@users = User.joins(:person).order('people.last_name ASC')
|
||||
end
|
||||
|
||||
def update
|
||||
|
|
@ -28,4 +22,4 @@ class Admin::UsersController < ApplicationController
|
|||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue