修改find_user_with_id

This commit is contained in:
sylor_huang@126.com 2020-03-30 11:55:45 +08:00
parent 1a88f6804a
commit e0a0e6d051
1 changed files with 2 additions and 1 deletions

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