里程碑的创建问题

dev_forge
sylor_huang@126.com 5 years ago
parent e33178463e
commit faf700eccc

@ -328,7 +328,7 @@ class ApplicationController < ActionController::Base
def current_user def current_user
# User.current # User.current
User.find_by_id 50207 User.find_by_id 130328
# User.find_by_id 36390 # User.find_by_id 36390
# nil # nil
end end
@ -645,7 +645,7 @@ class ApplicationController < ActionController::Base
end end
def find_project 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 render_not_found("未找到’#{params[:id]}’相关的项目") unless @project
end end

Loading…
Cancel
Save