Update users_controller.rb
This commit is contained in:
parent
0eb82bb11f
commit
7c57675693
1 changed files with 4 additions and 4 deletions
|
|
@ -2,13 +2,13 @@ class Admin::UsersController < ApplicationController
|
||||||
before_filter :verify_admin
|
before_filter :verify_admin
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@users = User.select("users.*,
|
@users = User.select('users.*,
|
||||||
people.last_name AS last_name,
|
people.last_name AS last_name,
|
||||||
people.first_name AS first_name,
|
people.first_name AS first_name,
|
||||||
people.public_name AS public_name,
|
people.public_name AS public_name,
|
||||||
people.email AS email").joins(:person).load.order("people.last_name ASC")
|
people.email AS email').
|
||||||
|
joins(:person).load.order('people.last_name ASC')
|
||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
user = User.find(params[:id])
|
user = User.find(params[:id])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue