mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 20:24:03 +00:00
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
|
||||
|
||||
def index
|
||||
@users = User.select("users.*,
|
||||
@users = User.select('users.*,
|
||||
people.last_name AS last_name,
|
||||
people.first_name AS first_name,
|
||||
people.public_name AS public_name,
|
||||
people.email AS email").joins(:person).load.order("people.last_name ASC")
|
||||
|
||||
end
|
||||
people.email AS email').
|
||||
joins(:person).load.order('people.last_name ASC')
|
||||
end
|
||||
|
||||
def update
|
||||
user = User.find(params[:id])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue