This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
fixed 用户搜索按昵称和登录时间倒排序
pull/345/head
xxq250
2 years ago
parent
03277d2ad7
commit
03283813c2
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/controllers/users_controller.rb
+ 1
- 1
app/controllers/users_controller.rb
View File
@@ -22,7 +22,7 @@ class UsersController < ApplicationController
end
def list
scope = User.active.
recent.
like(params[:search]).includes(:user_extension)
scope = User.active.like(params[:search]).includes(:user_extension)
.order(nickname: :desc, last_login_on: :desc)
@total_count = scope.size
@users = paginate(scope)
end
Write
Preview
Loading…
Cancel
Save