From faf700ecccd2a1f0faf1de839e46047af7717e54 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 12 Feb 2020 16:56:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8C=E7=A8=8B=E7=A2=91=E7=9A=84=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index fb2d9b433..078cf3eec 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -328,7 +328,7 @@ class ApplicationController < ActionController::Base def current_user # User.current - User.find_by_id 50207 + User.find_by_id 130328 # User.find_by_id 36390 # nil end @@ -645,7 +645,7 @@ class ApplicationController < ActionController::Base end def find_project - @project = Project.find_by_identifier!(params[:id]) || (Project.find params[:project_id]) || (Project.find params[:id]) + @project = Project.find_by_identifier!(params[:id] || params[:project_id]) || (Project.find params[:project_id]) || (Project.find params[:id]) render_not_found("未找到’#{params[:id]}’相关的项目") unless @project end