Browse Source

修改find_user_with_id

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
e0a0e6d051
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/controllers/application_controller.rb

+ 2
- 1
app/controllers/application_controller.rb View File

@@ -682,7 +682,8 @@ class ApplicationController < ActionController::Base

def find_user_with_id
@user = User.find_by_id params[:user_id]
render_not_found("未找到’#{params[:login]}’相关的用户") unless @user
# render_not_found("未找到’#{params[:login]}’相关的用户") unless @user
render_error("未找到相关的用户") unless @user
end

def find_repository


Loading…
Cancel
Save